mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-25 01:21:26 +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;
|
mode = GameMode.ADVENTURE;
|
||||||
} else if (modeString.equalsIgnoreCase("gmt") || modeString.equalsIgnoreCase("egmt") || modeString.contains("toggle") || modeString.contains("cycle") || modeString.equalsIgnoreCase("t")) {
|
} else if (modeString.equalsIgnoreCase("gmt") || modeString.equalsIgnoreCase("egmt") || modeString.contains("toggle") || modeString.contains("cycle") || modeString.equalsIgnoreCase("t")) {
|
||||||
mode = null;
|
mode = null;
|
||||||
|
} else if (modeString.equalsIgnoreCase("gmsp") || modeString.equalsIgnoreCase("egmsp") || modeString.equalsIgnoreCase("spec") || modeString.equalsIgnoreCase("3") || modeString.equalsIgnoreCase("sp")) {
|
||||||
|
mode = GameMode.SPECTATOR;
|
||||||
} else {
|
} else {
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user