Added more loggingggggg.
This commit is contained in:
parent
6515dd13a0
commit
93fbe70e9c
|
@ -30,7 +30,7 @@ public class TimeUtil
|
|||
{
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
@ -188,7 +188,10 @@ public class CoreClientManager implements Listener
|
|||
CoreClient client = Get(event.getPlayer().getName());
|
||||
|
||||
if (client == null || client.GetRank() == null)
|
||||
{
|
||||
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "There was an error logging you in. Please reconncet.");
|
||||
return;
|
||||
}
|
||||
|
||||
client.SetPlayer(event.getPlayer());
|
||||
|
||||
|
|
|
@ -186,9 +186,13 @@ public class GameCreationManager implements Listener
|
|||
return;
|
||||
}
|
||||
|
||||
TimeUtil.start("DisplayNext");
|
||||
Manager.GetLobby().DisplayNext(Manager.GetGame(), pastTeams);
|
||||
TimeUtil.stop();
|
||||
|
||||
TimeUtil.start("registerEvents");
|
||||
UtilServer.getServer().getPluginManager().registerEvents(Manager.GetGame(), Manager.GetPlugin());
|
||||
TimeUtil.stop();
|
||||
}
|
||||
|
||||
public void SetNextGameType(GameType type)
|
||||
|
|
|
@ -85,8 +85,10 @@ public class WorldData
|
|||
|
||||
World.setDifficulty(Difficulty.HARD);
|
||||
|
||||
TimeUtil.start("WorldData loading WorldConfig.");
|
||||
//Load World Data
|
||||
worldData.LoadWorldConfig();
|
||||
TimeUtil.stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue