From ceca0f5c907d321d3fa62d2c3122d3297ea22c71 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 31 May 2020 18:30:22 +0200 Subject: [PATCH] Add "survival" option in "/gm" command --- .../src/de/steamwar/bausystem/commands/CommandGamemode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandGamemode.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandGamemode.java index 9d4ac90..62f770b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandGamemode.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandGamemode.java @@ -66,6 +66,8 @@ public class CommandGamemode extends BukkitCommand { return GameMode.ADVENTURE; else if ((modeArg.equalsIgnoreCase("spectator")) || (modeArg.equalsIgnoreCase("sp"))) return GameMode.SPECTATOR; + else if ((modeArg.equalsIgnoreCase("survival")) || (modeArg.equalsIgnoreCase("s"))) + return GameMode.SURVIVAL; } return null; }