{"action":"opened","issue":{"url":"https://api.github.com/repos/masteroftime/Python-Plugin-Loader/issues/18","labels_url":"https://api.github.com/repos/masteroftime/Python-Plugin-Loader/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/masteroftime/Python-Plugin-Loader/issues/18/comments","events_url":"https://api.github.com/repos/masteroftime/Python-Plugin-Loader/issues/18/events","html_url":"https://github.com/masteroftime/Python-Plugin-Loader/issues/18","id":72723386,"number":18,"title":"Nested events are passed as parent event","user":{"login":"Dico200","id":8534012,"avatar_url":"https://avatars.githubusercontent.com/u/8534012?v=3","gravatar_id":"","url":"https://api.github.com/users/Dico200","html_url":"https://github.com/Dico200","followers_url":"https://api.github.com/users/Dico200/followers","following_url":"https://api.github.com/users/Dico200/following{/other_user}","gists_url":"https://api.github.com/users/Dico200/gists{/gist_id}","starred_url":"https://api.github.com/users/Dico200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dico200/subscriptions","organizations_url":"https://api.github.com/users/Dico200/orgs","repos_url":"https://api.github.com/users/Dico200/repos","events_url":"https://api.github.com/users/Dico200/events{/privacy}","received_events_url":"https://api.github.com/users/Dico200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T00:32:19Z","updated_at":"2015-05-03T00:32:19Z","closed_at":null,"body":"If an event nests another event, for example PlayerDeathEvent, which extends EntityDeathEvent, an instance of EntityDeathEvent is passed to the plugin. \r\n\r\nhooking into \"entity.PlayerDeathEvent\" is fine, however an error is thrown on load. I'm printing exc_info here:\r\n```\r\n[02:27:34 ERROR]: [RedstonerUtils] Traceback (most recent call last):\r\n  File \"C:\\Users\\Dico\\Documents\\Servers\\Test Server\\plugins\\redstoner-utils.py.dir\\deathmessages.py\", lin\r\n    broadcastToWorlds(normal_survival_worlds, event.getDeathMessage())\r\nAttributeError: 'org.bukkit.event.entity.EntityDeathEvent' object has no attribute 'getDeathMessage'\r\n```"}}