Change spectator mode string matching to be consistent with other gamemodes

This commit is contained in:
vemacs 2016-03-01 08:05:00 -07:00
parent ddee7d1b94
commit f94e242a75

View File

@ -109,7 +109,7 @@ public class Commandgamemode extends EssentialsCommand {
mode = GameMode.ADVENTURE;
} else if (modeString.equalsIgnoreCase("gmt") || modeString.equalsIgnoreCase("egmt") || modeString.contains("toggle") || modeString.contains("cycle") || modeString.equalsIgnoreCase("t")) {
mode = null;
} else if (modeString.equalsIgnoreCase("gmsp") || modeString.equalsIgnoreCase("egmsp") || modeString.equalsIgnoreCase("spec") || modeString.equalsIgnoreCase("3") || modeString.equalsIgnoreCase("sp")) {
} else if (modeString.equalsIgnoreCase("gmsp") || modeString.equalsIgnoreCase("egmsp") || modeString.contains("spec") || modeString.equalsIgnoreCase("3") || modeString.equalsIgnoreCase("sp")) {
mode = GameMode.SPECTATOR;
} else {
throw new NotEnoughArgumentsException();