Minor verbage "Starting in 1 Second."
Fixed NPE in client cleanup.
This commit is contained in:
parent
faea1072a1
commit
6904f9cf3d
@ -237,14 +237,15 @@ public class CoreClientManager implements Listener
|
||||
{
|
||||
Player clientPlayer = clientIterator.next().getValue().GetPlayer();
|
||||
|
||||
if ((clientPlayer == null || !clientPlayer.isOnline()) && !_dontRemoveList.contains(clientPlayer.getName()))
|
||||
if (clientPlayer == null || (!clientPlayer.isOnline() && !_dontRemoveList.contains(clientPlayer.getName())))
|
||||
{
|
||||
synchronized(_clientLock)
|
||||
{
|
||||
clientIterator.remove();
|
||||
}
|
||||
|
||||
_plugin.getServer().getPluginManager().callEvent(new ClientUnloadEvent(clientPlayer.getName()));
|
||||
if (clientPlayer != null)
|
||||
_plugin.getServer().getPluginManager().callEvent(new ClientUnloadEvent(clientPlayer.getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -890,7 +890,7 @@ public class GameLobbyManager implements IPacketRunnable, Listener
|
||||
if (Manager.GetGame() != null && Manager.GetGame().GetCountdown() >= 0)
|
||||
{
|
||||
if (Manager.GetGame().GetCountdown() > 0)
|
||||
objective.setDisplayName(C.Bold + "§lStarting in " + C.cGreen + "§l" + Manager.GetGame().GetCountdown() + " Seconds");
|
||||
objective.setDisplayName(C.Bold + "§lStarting in " + C.cGreen + "§l" + Manager.GetGame().GetCountdown() + (Manager.GetGame().GetCountdown() == 1 ? " Second" : " Seconds"));
|
||||
else if (Manager.GetGame().GetCountdown() == 0)
|
||||
objective.setDisplayName(ChatColor.WHITE + "§lIn Progress...");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user