Skip to content

Huge optimization, better messaging, new config values!

Latest
Compare
Choose a tag to compare
@CoolLord22 CoolLord22 released this 28 Oct 03:45
3be7de2

Introduction:

This update adds in new config features so please read the drafted notes carefully! Large optimizations have been made to reduce server impact during entity detection. New messages to distinguish which entity failed teleporting have been added. 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.

Installation:

  1. Stop the server.
  2. Save a copy of your current folder
  3. Delete the old jar (in /plugins folder) and copy the new jar in place of it.
  4. Start the server.
  5. Modify the config to your liking, and restart the server (or run /oat reload) to update the changes.
  6. Report bugs you discover!

Additions

  • Added much more console logging w/ improved entity ID's. Can increase verbosity in config to see enhanced logging. d82f258 be43f96 b9e8d7a 5066b40 02d2d11
  • Adds longer delay for entity to be invulnerable after teleporting. d761865
  • Adds plugin chunk ticket to teleport location to help prevent entity disappearing/having no tracking by keeping that location loaded before TP is sent. c8bdad2
  • Added negative entity matching for allowed entity types. Entities can be denied with a - See usage below. dcab4c9
# Allow all entities except pigs and cows
allowed_entities: [ANY, -PIG, -COW]
# Teleport causes we should ignore
ignore_causes: [DISMOUNT, EXIT_BED, UNKNOWN]
  • Adds new metrics chart for list of allowed/denied entities. See the respective data on bStats page. cc3d77d
  • Adds better messaging to log exactly which entity (regular, tamed, leashed) was left behind to the player. See config values at the bottom of this commit message. Any message can be set to "" to disable. 81a013f 2be51c2 6c8d940

Deletions

  • Removed 1.19 dependency as 1.20 should be backwards compliant
  • Removed ignore_unknown_causes config flag, as it is replaced by new ignore_causes setting.

Modifications

  • Bumping plugin version to 2.3. 4fa9bd3
  • Updating dependencies to latest snapshot. d442504
  • Delayed update checker by a tick to prevent message from showing up before playerjoin. d9a837b
  • Plugin correctly exits entity loop when the entity is successfully teleported, preventing the error message from being logged when it shouldn't have been sent. ddd6652
  • Plugin previously used ArrayLists to track entity types that were allowed to be teleported. This has very high time complexity and would cause severe lag when many entities were processed. We changed over to HashMaps for this storage which greatly relieves the server load. 63de3f8 27d09a2
  • Delays plugin enabling until all worlds have been loaded by the server to help reduce issues with worlds not being found. 1ea62d1
  • Optimized code, removed unnecessary statements, fixed improper types, etc. 2c7d863 8a875f3 6ce2cda 90f5edf

Config Changes

#######################
# Add the following to your config to ignore error causing teleport events
# Teleport causes we should ignore
ignore_causes: [DISMOUNT, EXIT_BED, UNKNOWN]

#######################
# Edit the messages section to contain the following
fail_teleport: "&7An entity could not be teleported and is located near (&c%x&7, &c%y&7, &c%z&7)."
entity_left: "&7An entity was left behind near (&c%x&7, &c%y&7, &c%z&7)."
leashed_entity_left: "&7A leashed entity was left behind near (&c%x&7, &c%y&7, &c%z&7)."
tamed_entity_left: "&7A tamed pet was left behind near (&c%x&7, &c%y&7, &c%z&7)."