game creation

This commit is contained in:
Chiss 2014-06-04 17:55:13 +10:00
parent a8dda4ef8b
commit 4c72651f86

View File

@ -100,16 +100,21 @@ public class GameCreationManager implements Listener
//Cleaned
if (game.WorldData == null || game.WorldData.World == null)
{
gameIterator.remove();
gameIterator.remove();
}
else
{
{
if (UtilTime.elapsed(game.GetStateTime(), 10000))
{
TimeUtil.start("GameCreationManager - Kick Players - " + game.GetName());
for (Player player : game.WorldData.World.getPlayers())
{
System.out.println("Kicking [" + player.getName() + "] with Validity [" + player.isValid() + "]");
player.kickPlayer("Dead World");
}
TimeUtil.stop();
}