MultiplayerHardcore

MultiplayerHardcore

283 Downloads

Issues with Totems of Undying

GameGold231 opened this issue · 3 comments

commented

My Friends and I have been using this plugin for a while now and we discovered an issue where Totems of Undying do not work, and instead the plugin thinks a death has occurred. I was thinking maybe this was because it calculates whether the damage will take the player past zero, and since the Totem does the same thing it calculates a death anyways? What would happen if a death was instead triggered by EntityDeathEvent and not EntityDamageEvent?

Thanks

commented

it looks like a workaround could be that you can check if there is a totem of undying in the main or offhand, and if not then continue. Check getItemInMainHand() and getItemInOffHand()
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/PlayerInventory.html

commented
commented

I've put out a new release that should circumnavigate this issue for now.