Votekick cleanup
This commit is contained in:
@@ -464,12 +464,11 @@ public class NetServer implements ApplicationListener{
|
||||
return;
|
||||
}
|
||||
|
||||
int sign;
|
||||
switch(arg[0].toLowerCase()){
|
||||
case "y", "yes" -> sign = 1;
|
||||
case "n", "no" -> sign = -1;
|
||||
default -> sign = 0;
|
||||
}
|
||||
int sign = switch(arg[0].toLowerCase()){
|
||||
case "y", "yes" -> 1;
|
||||
case "n", "no" -> -1;
|
||||
default -> 0;
|
||||
};
|
||||
|
||||
if(sign == 0){
|
||||
player.sendMessage("[scarlet]Vote either 'y' (yes) or 'n' (no).");
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=e318a6e39bf0497df62b2b3110dc24692d993d33
|
||||
archash=454155254a0a17b7c48d09f88e3136a31a60e3e1
|
||||
|
||||
Reference in New Issue
Block a user