{"action":"created","issue":{"url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/488","repository_url":"https://api.github.com/repos/CyberdyneCC/Thermos","labels_url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/488/comments","events_url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/488/events","html_url":"https://github.com/CyberdyneCC/Thermos/issues/488","id":171047515,"number":488,"title":"Thermos B57: Teleportation on death broken","user":{"login":"DraksterAU","id":9921203,"avatar_url":"https://avatars.githubusercontent.com/u/9921203?v=3","gravatar_id":"","url":"https://api.github.com/users/DraksterAU","html_url":"https://github.com/DraksterAU","followers_url":"https://api.github.com/users/DraksterAU/followers","following_url":"https://api.github.com/users/DraksterAU/following{/other_user}","gists_url":"https://api.github.com/users/DraksterAU/gists{/gist_id}","starred_url":"https://api.github.com/users/DraksterAU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DraksterAU/subscriptions","organizations_url":"https://api.github.com/users/DraksterAU/orgs","repos_url":"https://api.github.com/users/DraksterAU/repos","events_url":"https://api.github.com/users/DraksterAU/events{/privacy}","received_events_url":"https://api.github.com/users/DraksterAU/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-14T08:07:32Z","updated_at":"2016-08-14T09:27:29Z","closed_at":"2016-08-14T09:27:29Z","body":"Hi All\r\n\r\nI've found an issue with Thermos where it throws **two** teleport events for a player death.\r\n\r\nThis causes setSpawnChunk in the forge LivingDeathEvent to fail to apply properly, as well as setRespawnlocation in the bukkit PlayerRespawnEvent.\r\n\r\nIt seems the second teleport event is triggered by a TeleportCause of UNKNOWN and is not supposed to be there.\r\n\r\nThis breaks all plugins that try to teleport a player between worlds on death...\r\nIve tested Thermos B57 and no plugins except my custom one.\r\n\r\nI've temporarily fixed this with the below code in my plugin:\r\n\r\n        // This rectifies a bug in the server JAR that throws an Unknown \r\n        if (e.getCause().equals(TeleportCause.UNKNOWN) && e.getFrom().getWorld().getName().equals(e.getTo().getWorld().getName())) {\r\n                e.setCancelled(true);\r\n                return;\r\n        }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/comments/239664255","html_url":"https://github.com/CyberdyneCC/Thermos/issues/488#issuecomment-239664255","issue_url":"https://api.github.com/repos/CyberdyneCC/Thermos/issues/488","id":239664255,"user":{"login":"DraksterAU","id":9921203,"avatar_url":"https://avatars.githubusercontent.com/u/9921203?v=3","gravatar_id":"","url":"https://api.github.com/users/DraksterAU","html_url":"https://github.com/DraksterAU","followers_url":"https://api.github.com/users/DraksterAU/followers","following_url":"https://api.github.com/users/DraksterAU/following{/other_user}","gists_url":"https://api.github.com/users/DraksterAU/gists{/gist_id}","starred_url":"https://api.github.com/users/DraksterAU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DraksterAU/subscriptions","organizations_url":"https://api.github.com/users/DraksterAU/orgs","repos_url":"https://api.github.com/users/DraksterAU/repos","events_url":"https://api.github.com/users/DraksterAU/events{/privacy}","received_events_url":"https://api.github.com/users/DraksterAU/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T09:27:29Z","updated_at":"2016-08-14T09:27:29Z","body":"Corrupt world. Nevermind."}}
{"actor":{"display_login":"DraksterAU"}}