You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an event nests another event, for example PlayerDeathEvent, which extends EntityDeathEvent, an instance of EntityDeathEvent is passed to the plugin.
hooking into "entity.PlayerDeathEvent" is fine, however an error is thrown on load. I'm printing exc_info here:
[02:27:34 ERROR]: [RedstonerUtils] Traceback (most recent call last):
File "C:\Users\Dico\Documents\Servers\Test Server\plugins\redstoner-utils.py.dir\deathmessages.py", lin
broadcastToWorlds(normal_survival_worlds, event.getDeathMessage())
AttributeError: 'org.bukkit.event.entity.EntityDeathEvent' object has no attribute 'getDeathMessage'
If an event nests another event, for example PlayerDeathEvent, which extends EntityDeathEvent, an instance of EntityDeathEvent is passed to the plugin.
hooking into "entity.PlayerDeathEvent" is fine, however an error is thrown on load. I'm printing exc_info here:
Here's the code I'm using:
You're not able to see all imported functions but you should be able to read everything.
Note that an instance of EntityDeathEvent is passed to the function while PlayerDeathEvent is listened for.
The text was updated successfully, but these errors were encountered: