Merge pull request #3468 from skykatik/patch-6

Remove space in ban message & added @ for argument
This commit is contained in:
Anuken 2020-11-19 12:44:52 -05:00 committed by GitHub
commit f4c69372c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -691,7 +691,7 @@ public class ServerControl implements ApplicationListener{
for(Player player : Groups.player){
if(netServer.admins.isIDBanned(player.uuid())){
Call.sendMessage("[scarlet] " + player.name + " has been banned.");
Call.sendMessage("[scarlet]" + player.name + " has been banned.");
player.con.kick(KickReason.banned);
}
}
@ -728,7 +728,7 @@ public class ServerControl implements ApplicationListener{
handler.register("unban", "<ip/ID>", "Completely unban a person by IP or ID.", arg -> {
if(netServer.admins.unbanPlayerIP(arg[0]) || netServer.admins.unbanPlayerID(arg[0])){
info("Unbanned player.", arg[0]);
info("Unbanned player: @", arg[0]);
}else{
err("That IP/ID is not banned!");
}