Added check for falling from map.

This commit is contained in:
William Burns 2015-12-23 10:59:12 +00:00
parent c48df36459
commit 79dea726aa
1 changed files with 15 additions and 0 deletions

View File

@ -221,6 +221,21 @@ public class Draw extends SoloGame
Reset();
}
@EventHandler
public void playerFallCloudy(PlayerMoveEvent e)
{
if (!GetPlayers(true).contains(e.getPlayer()))
return;
if (!WorldData.MapName.equalsIgnoreCase("Cloudy"))
return;
if (e.getTo().getBlockY() <= 130)
{
GetTeam(e.getPlayer()).SpawnTeleport(e.getPlayer());
}
}
@Override
@EventHandler
public void CustomTeamGeneration(GameStateChangeEvent event)