SteamWar/BauSystem2.0
Archiviert
12
0

Fix TimeCommand

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-29 13:46:36 +02:00
Ursprung 3a5ef0bac8
Commit 5932317f77

Datei anzeigen

@ -40,6 +40,10 @@ public class GamemodeCommand extends SWCommand {
@Register @Register
public void genericCommand(final Player p) { public void genericCommand(final Player p) {
if (NoClipCommand.getNOCLIPS().contains(p)) {
p.performCommand("noclip");
return;
}
if (p.getGameMode() == GameMode.CREATIVE) { if (p.getGameMode() == GameMode.CREATIVE) {
p.setGameMode(GameMode.SPECTATOR); p.setGameMode(GameMode.SPECTATOR);
} else { } else {