Fix item duplication using dimension changes / entity unloads
This update fixes a duplication bug where you could dupe items by either moving the armor stand far enough away from you so that it unloaded or by sending it through a portal into another dimension while having the GUI open.
To fix this, this update introduces the new
maxDistance option for the
move_position feature, which can be set in config.yml and is 100 by default. Players won't be able to use the buttons in the GUI to move the armor stand further away from them than this number of blocks.
However, since I needed the
EntitiesUnloadEvent to fix the unload bug, I had to drop support for 1.17 and 1.17.1 since the event was introduced in 1.18. Given that it's a relatively old version, I feel this is justified. If you want to use this plugin on 1.17, you can of course still use version 1.5.13 of this plugin.