GamePlayerManager: Don't load kits if offline

This commit is contained in:
samczsun 2016-10-10 09:17:43 -04:00
parent a7986a0719
commit 1d961c7d81

View File

@ -134,6 +134,9 @@ public class GamePlayerManager implements Listener
@Override @Override
public void run() public void run()
{ {
if (!player.isOnline())
return;
player.sendMessage(F.main("Kit", "Loading default kit for " + C.cGreenB + Manager.GetGame().GetName() + C.cGray + "...")); player.sendMessage(F.main("Kit", "Loading default kit for " + C.cGreenB + Manager.GetGame().GetName() + C.cGray + "..."));
for (Kit kit : Manager.GetGame().GetKits()) for (Kit kit : Manager.GetGame().GetKits())
{ {