Fixed #2440
This commit is contained in:
@@ -371,6 +371,11 @@ public class NetServer implements ApplicationListener{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(currentlyKicking[0] != null){
|
||||||
|
player.sendMessage("[scarlet]A vote is already in progress.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(args.length == 0){
|
if(args.length == 0){
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("[orange]Players to kick: \n");
|
builder.append("[orange]Players to kick: \n");
|
||||||
@@ -385,9 +390,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
int id = Strings.parseInt(args[0].substring(1));
|
int id = Strings.parseInt(args[0].substring(1));
|
||||||
found = Groups.player.find(p -> p.id() == id);
|
found = Groups.player.find(p -> p.id() == id);
|
||||||
}else{
|
}else{
|
||||||
found = Groups.player.find(p -> {
|
found = Groups.player.find(p -> p.name.equalsIgnoreCase(args[0]));
|
||||||
return p.name.equalsIgnoreCase(args[0]);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(found != null){
|
if(found != null){
|
||||||
|
|||||||
Reference in New Issue
Block a user