Add the ability to make spectator gamemode signs (#2386) @darbyjack

Fixes #2383.
This commit is contained in:
Glare Masters 2019-01-20 04:14:20 -06:00 committed by md678685
parent 060dfc69f4
commit 827217823e

View File

@ -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));
}