WorldType worldType = data.get(VanillaData.WORLD_TYPE);
if (human != null) {
gamemode = human.getGameMode();
}
getSession().send(new PlayerRespawnMessage(0, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
getSession().send(new PlayerRespawnMessage(1, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
getSession().send(new PlayerRespawnMessage(dimension.getId(), difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
if (human != null) {
human.updateAbilities();
}