Introduction:
This update adds in new config features so please read the drafted notes carefully! Added support for GriefDefender to prevent players teleporting entities inside of admin claims. Optimizations have been made to reduce server impact during teleport cause checking.
Please see config changes at the end of this changelog!
**IMPORTANT** If you do not wish to delete your entire config file, please see the section at the very bottom of these update draft notes to see config changes and what needs to be added to your current file.
Latest release information/download can also be found on GitHub here.
Installation:
- Stop the server.
- Save a copy of your current folder
- Delete the old jar (in /plugins folder) and copy the new jar in place of it.
- Start the server.
- Modify the config to your liking, and restart the server (or run /oat reload) to update the changes.
- Report bugs you discover!
Additions
+ [Addition] Added support for GriefDefender. New config option to prevent teleporting of animals into GriefDefender admin claims
+ [Addition] Added a few more logger comments for teleport events, most requiring Verbosity in config to be
HIGHEST or above.
Deletions
– [Deletion] Removed 1.20 dependency as 1.21 should be backwards compliant
Modifications
• [Modification] Bumping plugin version to 2.4.
• [Modification] Updating dependencies to latest snapshot.
• [Modification] Converted internal storage of teleport causes to HashSet to reduce server load when searching for teleport reasons to ignore.
• [Modification] Removed damage resistance for entity. In 1.21 DAMAGE_RESISTANCE was renamed to just RESISTANCE. To keep plugin backwards compatible, since we are already making the entity invulnerable on teleport, this damage resistance was removed.
• [BUG FIX] Added a check to see if WorldGuard is enabled before proceeding with region checks. Should fix NPE errors occurring if a region was specified but WorldGuard couldn't be found.
• [BUG FIX] Fixed command handler; previous versions had an issue where not using /oat would result in the command not executing. Refactored how the entire command handler works, to now treat all command aliases equally.
• [BUG FIX]
Convert world group storage to strings. Previously we stored World objects in the world group lists, which led to errors rising when a world was unloaded and reloaded without OAT reloading. Using String types ensures we only care about the world name instead of the object.
• [BUG FIX] Updated the logic of the entity gatherer when a player teleports. Should help false positive messages of failed teleports/missing entities.
- We now will check if the entity is leashed or not first, and then proceed to remaining checks.
- If the entity was not leashed, we will proceed to check if it was tamed. If it was tamed, and not sitting, we will proceed.
- If neither of the above conditions were met, we will notify player.
• [Cleanup] Optimized code, removed unnecessary comments
Config Changes
Code (YAML):
#######################
# Prevent players from bringing animals into GriefDefender admin claims
prevent_gd_admin_claims
: false