MagicCheese1 / Damage-Indicator

Minecraft Bukkit plugin for indicating damage dealt to entities
https://www.spigotmc.org/resources/87113/
MIT License
17 stars 4 forks source link

Optimize armorstand spawning #4

Closed MagicCheese1 closed 3 years ago

MagicCheese1 commented 3 years ago

Fake armorstands

Previously, the plugin spawned real armor stands into the world. This was slowing down bigger servers because every time a player hit an entity, a ticking armor stand was spawned for three seconds. Now the plugin creates "fake entities" instead. Every time a player hits something, a packet is sent to the player(s) containing a "virtual" armor stand that never actually appears in the server's world and only exists on the client's screen. This should cause a major performance improvement.

No more Protocollib

The plugin no longer depends on Protocollib. The packets are now handled with pure NMS.

Compatibity

Versions below 1.16.5 are no longer supported.