This commit is contained in:
William Burns 2015-12-09 23:14:08 +00:00
parent 17c989d941
commit 3ad0a3db6e

View File

@ -308,6 +308,12 @@ public class Gladiators extends SoloGame
giveLoadout(p, _playerArenas.get(p).getColour());
}
for (Arena a : _gameArenaSet)
{
if (a.getPastPlayers().size() != 0)
a.setState(ArenaState.WAITING);
}
return;
}
@ -421,6 +427,25 @@ public class Gladiators extends SoloGame
}
}
@EventHandler
public void arenaCheckPlayer(UpdateEvent e)
{
if (!IsLive())
return;
if (e.getType() != UpdateType.TICK)
return;
for (Arena a : _gameArenaSet)
{
for (Player p : a.getPastPlayers())
{
if (!GetPlayers(true).contains(p))
a.getPastPlayers().remove(p);
}
}
}
@EventHandler
public void arenaChange(PlayerChangeArenaEvent e)
{