fix
This commit is contained in:
parent
17c989d941
commit
3ad0a3db6e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user