Votekick cleanup

This commit is contained in:
Anuken
2021-03-11 16:55:00 -05:00
parent e08052d7d6
commit c5bea40e7d
2 changed files with 6 additions and 7 deletions

View File

@@ -464,12 +464,11 @@ public class NetServer implements ApplicationListener{
return; return;
} }
int sign; int sign = switch(arg[0].toLowerCase()){
switch(arg[0].toLowerCase()){ case "y", "yes" -> 1;
case "y", "yes" -> sign = 1; case "n", "no" -> -1;
case "n", "no" -> sign = -1; default -> 0;
default -> sign = 0; };
}
if(sign == 0){ if(sign == 0){
player.sendMessage("[scarlet]Vote either 'y' (yes) or 'n' (no)."); player.sendMessage("[scarlet]Vote either 'y' (yes) or 'n' (no).");

View File

@@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=e318a6e39bf0497df62b2b3110dc24692d993d33 archash=454155254a0a17b7c48d09f88e3136a31a60e3e1