mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed 'bans' server crash
This commit is contained in:
parent
815daccff1
commit
697e288de2
@ -333,7 +333,11 @@ public class ServerControl extends Module {
|
|||||||
Log.info("&lmBanned players [IP]:");
|
Log.info("&lmBanned players [IP]:");
|
||||||
for(String string : ipbans){
|
for(String string : ipbans){
|
||||||
PlayerInfo info = netServer.admins.findByIP(string);
|
PlayerInfo info = netServer.admins.findByIP(string);
|
||||||
Log.info(" &lm '{0}' / Last known name: '{1}' / ID: '{2}'", string, info.lastName, info.id);
|
if(info != null) {
|
||||||
|
Log.info(" &lm '{0}' / Last known name: '{1}' / ID: '{2}'", string, info.lastName, info.id);
|
||||||
|
}else{
|
||||||
|
Log.info(" &lm '{0}' (No known name or info)", string);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user