Added more loggingggggg.

This commit is contained in:
Jonathan Williams 2014-06-15 17:21:40 -07:00
parent 6515dd13a0
commit 93fbe70e9c
4 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class TimeUtil
{ {
Entry<String, Long> entry = iterator.next(); Entry<String, Long> entry = iterator.next();
System.out.println(entry.getKey()+ " took " + (System.currentTimeMillis() - entry.getValue()) + "ms"); System.out.println("==[TimeUtil]==" + entry.getKey()+ " took " + (System.currentTimeMillis() - entry.getValue()) + "ms");
iterator.remove(); iterator.remove();
} }

View File

@ -188,7 +188,10 @@ public class CoreClientManager implements Listener
CoreClient client = Get(event.getPlayer().getName()); CoreClient client = Get(event.getPlayer().getName());
if (client == null || client.GetRank() == null) if (client == null || client.GetRank() == null)
{
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "There was an error logging you in. Please reconncet."); event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "There was an error logging you in. Please reconncet.");
return;
}
client.SetPlayer(event.getPlayer()); client.SetPlayer(event.getPlayer());

View File

@ -186,9 +186,13 @@ public class GameCreationManager implements Listener
return; return;
} }
TimeUtil.start("DisplayNext");
Manager.GetLobby().DisplayNext(Manager.GetGame(), pastTeams); Manager.GetLobby().DisplayNext(Manager.GetGame(), pastTeams);
TimeUtil.stop();
TimeUtil.start("registerEvents");
UtilServer.getServer().getPluginManager().registerEvents(Manager.GetGame(), Manager.GetPlugin()); UtilServer.getServer().getPluginManager().registerEvents(Manager.GetGame(), Manager.GetPlugin());
TimeUtil.stop();
} }
public void SetNextGameType(GameType type) public void SetNextGameType(GameType type)

View File

@ -85,8 +85,10 @@ public class WorldData
World.setDifficulty(Difficulty.HARD); World.setDifficulty(Difficulty.HARD);
TimeUtil.start("WorldData loading WorldConfig.");
//Load World Data //Load World Data
worldData.LoadWorldConfig(); worldData.LoadWorldConfig();
TimeUtil.stop();
} }
}); });
} }