mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-09 09:57:34 +01:00
Spectate gamemode.
This commit is contained in:
parent
15bd41fefc
commit
b113bb59d4
@ -92,6 +92,8 @@ 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")) {
|
||||
mode = GameMode.SPECTATOR;
|
||||
} else {
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user