Crash fixes

This commit is contained in:
Anuken
2018-07-03 12:27:37 -04:00
parent e56d865416
commit c9b77e4e23
5 changed files with 9 additions and 4 deletions

View File

@@ -220,6 +220,11 @@ public class ServerControl extends Module {
if(playerGroup.size() > 0) {
info("&lyPlayers: {0}", playerGroup.size());
for (Player p : playerGroup.all()) {
//TODO
if(Net.getConnection(p.clientid) == null){
netServer.onDisconnect(p);
continue;
}
print(" &y{0} / Connection {1} / IP: {2}", p.name, p.clientid, Net.getConnection(p.clientid).address);
}
}else{