mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Add the ability to make spectator gamemode signs (#2386) @darbyjack
Fixes #2383.
This commit is contained in:
parent
060dfc69f4
commit
827217823e
@ -54,6 +54,8 @@ public class SignGameMode extends EssentialsSign {
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
} else if (mode.contains("advent") || mode.equalsIgnoreCase("2")) {
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
} else if (mode.contains("spec") || mode.equalsIgnoreCase("3")) {
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
} else {
|
||||
throw new SignException(tl("invalidSignLine", 2));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user