Added check for falling from map.
This commit is contained in:
parent
c48df36459
commit
79dea726aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue