@EventHandler(priority = EventPriority.HIGHEST)
	public void onPlayerRespawn(PlayerRespawnEvent event) {
		DataWorld worldDied = plugin.getWorlds().get(playerDiedInWorld.get(event.getPlayer().getName()));
		
		if (worldDied == null) {
			System.out.println("Player " + event.getPlayer().getName() + " died, but i don't know where?! (" + event.getPlayer().getWorld().getName() + ")");
			return;
		}
		
		switch (worldDied.getRespawnLocation()) {
		case WORLDSPAWN:
			event.setRespawnLocation(worldDied.getWorld().getSpawnLocation());
			break;
		case BEDSPAWN:
			if (event.getPlayer().getBedSpawnLocation() != null) {
				event.setRespawnLocation(event.getPlayer().getBedSpawnLocation());
			} else {
				event.setRespawnLocation(worldDied.getWorld().getSpawnLocation());
			}
			break;
		case WORLD:
			String respawnWorldName = worldDied.getRespawnWorldName();
			DataWorld respawnWorld;
			
			if (respawnWorldName != null && plugin.getWorlds().get(respawnWorldName) != null) {
				respawnWorld = plugin.getWorlds().get(respawnWorldName);
			} else {
				respawnWorld = worldDied;
			}

			event.setRespawnLocation(respawnWorld.getWorld().getSpawnLocation());
			break;
		}
	}