From 5932317f77e7551a626f7060f2791240e185574f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 29 Jul 2021 13:46:36 +0200 Subject: [PATCH] Fix TimeCommand Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/other/GamemodeCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java index e210a9de..f4d38198 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java @@ -40,6 +40,10 @@ public class GamemodeCommand extends SWCommand { @Register public void genericCommand(final Player p) { + if (NoClipCommand.getNOCLIPS().contains(p)) { + p.performCommand("noclip"); + return; + } if (p.getGameMode() == GameMode.CREATIVE) { p.setGameMode(GameMode.SPECTATOR); } else {