From 4c8159043f88f9be00851a0b477ea8531200d296 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Apr 2021 15:48:21 +0200 Subject: [PATCH] Fix GamemodeCommand code convention --- .../de/steamwar/bausystem/features/other/GamemodeCommand.java | 4 ---- 1 file changed, 4 deletions(-) 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 8dd49934..18ef3580 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/other/GamemodeCommand.java @@ -25,7 +25,6 @@ import net.md_5.bungee.api.ChatColor; import org.bukkit.GameMode; import org.bukkit.entity.Player; - @Linked(LinkageType.COMMAND) public class GamemodeCommand extends SWCommand { @@ -33,14 +32,12 @@ public class GamemodeCommand extends SWCommand { super("gamemode", "gm", "g"); } - @Register(help = true) public void help(final Player p, final String... args) { p.sendMessage(ChatColor.RED + "Unbekannter Spielmodus."); p.sendMessage(ChatColor.RED + "Mögliche Spielmodi: survival, adventure, creative, specator."); } - @Register public void genericCommand(final Player p) { if (p.getGameMode() == GameMode.CREATIVE) { @@ -50,7 +47,6 @@ public class GamemodeCommand extends SWCommand { } } - @Register public void gamemodeCommand(final Player p, final GameMode gameMode) { p.setGameMode(gameMode);