mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-14 01:37:36 +07:00
Minor ban fix
This commit is contained in:
@ -405,7 +405,6 @@ public class ServerControl extends Module{
|
|||||||
for(Player player : playerGroup.all()){
|
for(Player player : playerGroup.all()){
|
||||||
if(player.name.equalsIgnoreCase(arg[0])){
|
if(player.name.equalsIgnoreCase(arg[0])){
|
||||||
target = player;
|
target = player;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -457,7 +456,6 @@ public class ServerControl extends Module{
|
|||||||
if(player.con.address != null &&
|
if(player.con.address != null &&
|
||||||
player.con.address.equals(arg[0])){
|
player.con.address.equals(arg[0])){
|
||||||
netServer.kick(player.con.id, KickReason.banned);
|
netServer.kick(player.con.id, KickReason.banned);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -472,7 +470,6 @@ public class ServerControl extends Module{
|
|||||||
for(Player player : playerGroup.all()){
|
for(Player player : playerGroup.all()){
|
||||||
if(player.uuid.equals(arg[0])){
|
if(player.uuid.equals(arg[0])){
|
||||||
netServer.kick(player.con.id, KickReason.banned);
|
netServer.kick(player.con.id, KickReason.banned);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
Reference in New Issue
Block a user