{"action":"created","issue":{"url":"https://api.github.com/repos/teozfrank/DuelMe/issues/15","labels_url":"https://api.github.com/repos/teozfrank/DuelMe/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/teozfrank/DuelMe/issues/15/comments","events_url":"https://api.github.com/repos/teozfrank/DuelMe/issues/15/events","html_url":"https://github.com/teozfrank/DuelMe/issues/15","id":54216879,"number":15,"title":"Cancel damage instead of saving player on death","user":{"login":"DarkShimy00","id":1345121,"avatar_url":"https://avatars.githubusercontent.com/u/1345121?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkShimy00","html_url":"https://github.com/DarkShimy00","followers_url":"https://api.github.com/users/DarkShimy00/followers","following_url":"https://api.github.com/users/DarkShimy00/following{/other_user}","gists_url":"https://api.github.com/users/DarkShimy00/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkShimy00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkShimy00/subscriptions","organizations_url":"https://api.github.com/users/DarkShimy00/orgs","repos_url":"https://api.github.com/users/DarkShimy00/repos","events_url":"https://api.github.com/users/DarkShimy00/events{/privacy}","received_events_url":"https://api.github.com/users/DarkShimy00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/teozfrank/DuelMe/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T16:48:40Z","updated_at":"2015-01-13T18:48:11Z","closed_at":null,"body":"It is less buggy to cancel the damage event if life goes under 0 than saving the player's inventory/xp/hunger on death."},"comment":{"url":"https://api.github.com/repos/teozfrank/DuelMe/issues/comments/69796574","html_url":"https://github.com/teozfrank/DuelMe/issues/15#issuecomment-69796574","issue_url":"https://api.github.com/repos/teozfrank/DuelMe/issues/15","id":69796574,"user":{"login":"DarkShimy00","id":1345121,"avatar_url":"https://avatars.githubusercontent.com/u/1345121?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkShimy00","html_url":"https://github.com/DarkShimy00","followers_url":"https://api.github.com/users/DarkShimy00/followers","following_url":"https://api.github.com/users/DarkShimy00/following{/other_user}","gists_url":"https://api.github.com/users/DarkShimy00/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkShimy00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkShimy00/subscriptions","organizations_url":"https://api.github.com/users/DarkShimy00/orgs","repos_url":"https://api.github.com/users/DarkShimy00/repos","events_url":"https://api.github.com/users/DarkShimy00/events{/privacy}","received_events_url":"https://api.github.com/users/DarkShimy00/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T18:48:11Z","updated_at":"2015-01-13T18:48:11Z","body":"Yes, I checked the code right before opening this issue.\r\n\r\nWhat I mean is that you use `dm.addDeadPlayer(playerUUID);` and then listen to the event `onPlayerRespawn(PlayerRespawnEvent e)` to restore the inventory.\r\n\r\nThis works but may cause bugs (plugin unloading BEFORE the player has respawned for example). A safer method is to *cancel* the damage event and immediately restore the player's data.\r\n\r\nI misspoke but it's sad to see how you react when someone tries to improve the plugin."}}