{"action":"created","issue":{"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1647","repository_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod","labels_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1647/labels{/name}","comments_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1647/comments","events_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1647/events","html_url":"https://github.com/TotalFreedom/TotalFreedomMod/issues/1647","id":154128724,"number":1647,"title":"Death potions are a problem","user":{"login":"JacobMathBoy","id":9222630,"avatar_url":"https://avatars.githubusercontent.com/u/9222630?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobMathBoy","html_url":"https://github.com/JacobMathBoy","followers_url":"https://api.github.com/users/JacobMathBoy/followers","following_url":"https://api.github.com/users/JacobMathBoy/following{/other_user}","gists_url":"https://api.github.com/users/JacobMathBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobMathBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobMathBoy/subscriptions","organizations_url":"https://api.github.com/users/JacobMathBoy/orgs","repos_url":"https://api.github.com/users/JacobMathBoy/repos","events_url":"https://api.github.com/users/JacobMathBoy/events{/privacy}","received_events_url":"https://api.github.com/users/JacobMathBoy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/labels/Issue:%20Enhancement","name":"Issue: Enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-10T23:26:35Z","updated_at":"2016-05-11T09:20:43Z","closed_at":"2016-05-11T09:20:43Z","body":"I think that disallowing PlayerDeathEvents in creative might work.\r\n```java\r\n@EventHandler(priority=EventPriority.HIGHEST)\r\npublic void onDeath(PlayerDeathEvent evt) { // remove this code snippet if it's not okay to put code in issue text\r\n    if (evt.getPlayer().getGameMode().equals(GameMode.CREATIVE)) {\r\n        evt.setCancelled(true);\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/comments/218406278","html_url":"https://github.com/TotalFreedom/TotalFreedomMod/issues/1647#issuecomment-218406278","issue_url":"https://api.github.com/repos/TotalFreedom/TotalFreedomMod/issues/1647","id":218406278,"user":{"login":"JeromSar","id":1307863,"avatar_url":"https://avatars.githubusercontent.com/u/1307863?v=3","gravatar_id":"","url":"https://api.github.com/users/JeromSar","html_url":"https://github.com/JeromSar","followers_url":"https://api.github.com/users/JeromSar/followers","following_url":"https://api.github.com/users/JeromSar/following{/other_user}","gists_url":"https://api.github.com/users/JeromSar/gists{/gist_id}","starred_url":"https://api.github.com/users/JeromSar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeromSar/subscriptions","organizations_url":"https://api.github.com/users/JeromSar/orgs","repos_url":"https://api.github.com/users/JeromSar/repos","events_url":"https://api.github.com/users/JeromSar/events{/privacy}","received_events_url":"https://api.github.com/users/JeromSar/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T09:20:43Z","updated_at":"2016-05-11T09:20:43Z","body":"Duplicate of https://github.com/TotalFreedom/TotalFreedomMod/issues/690"}}