From db3748213473e0fe88ccc01c579c975842b751a7 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 23 Apr 2017 02:13:51 +0200 Subject: [PATCH] Started converting command classes --- .../chat/commands/ChatonlyCommand.java | 17 +------------ .../chat/commands/MWikiCommand.java | 17 ++----------- .../chat/commands/OOCCommand.java | 23 ++++-------------- .../chat/commands/UnlolCommand.java | 17 ++----------- .../chat/commands/WaitWhatCommand.java | 16 +++++-------- .../chat/commands/YeehawCommand.java | 17 ++----------- .../appendtext/AppendTextCommandBase.java | 12 ++-------- .../commands/appendtext/ShrugCommand.java | 13 ++++------ .../commands/appendtext/TableflipCommand.java | 11 +++------ .../commands/appendtext/UnflipCommand.java | 11 +++------ .../chat/commands/ucmds/AcceptCommand.java | 9 ++++--- .../chat/commands/ucmds/CCommand.java | 5 ---- .../chat/commands/ucmds/UCommandBase.java | 24 +++++-------------- .../ucmds/admin/AdminCommandBase.java | 18 ++------------ .../commands/ucmds/admin/DebugCommand.java | 5 ---- .../ucmds/admin/PlayerInfoCommand.java | 5 ---- .../commands/ucmds/admin/SaveCommand.java | 5 ---- .../commands/ucmds/admin/SetFlairCommand.java | 5 ---- .../commands/ucmds/admin/UpdatePlugin.java | 5 ---- .../commands/ucmds/announce/AddCommand.java | 5 ---- .../ucmds/announce/AnnounceCommandBase.java | 20 ++++------------ .../commands/ucmds/announce/EditCommand.java | 5 ---- .../commands/ucmds/announce/ListCommand.java | 5 ---- .../ucmds/announce/RemoveCommand.java | 5 ---- .../ucmds/announce/SetTimeCommand.java | 5 ---- 25 files changed, 46 insertions(+), 234 deletions(-) diff --git a/src/main/java/buttondevteam/chat/commands/ChatonlyCommand.java b/src/main/java/buttondevteam/chat/commands/ChatonlyCommand.java index 1ebb8c8..a79e878 100644 --- a/src/main/java/buttondevteam/chat/commands/ChatonlyCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ChatonlyCommand.java @@ -8,7 +8,7 @@ import buttondevteam.chat.ChatPlayer; import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.player.TBMCPlayer; -public final class ChatonlyCommand extends TBMCCommandBase { +public final class ChatonlyCommand extends TBMCCommandBase { //TODO: Add annotation @Override public String[] GetHelpText(String alias) { @@ -29,19 +29,4 @@ public final class ChatonlyCommand extends TBMCCommandBase { return true; } - @Override - public String GetCommandPath() { - return "chatonly"; - } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/MWikiCommand.java b/src/main/java/buttondevteam/chat/commands/MWikiCommand.java index 11d3974..3a7e15a 100644 --- a/src/main/java/buttondevteam/chat/commands/MWikiCommand.java +++ b/src/main/java/buttondevteam/chat/commands/MWikiCommand.java @@ -5,8 +5,10 @@ import java.net.URLEncoder; import org.bukkit.command.CommandSender; +import buttondevteam.lib.chat.CommandClass; import buttondevteam.lib.chat.TBMCCommandBase; +@CommandClass(modOnly = false) public class MWikiCommand extends TBMCCommandBase { @Override @@ -37,19 +39,4 @@ public class MWikiCommand extends TBMCCommandBase { return true; } - @Override - public String GetCommandPath() { - return "mwiki"; - } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/OOCCommand.java b/src/main/java/buttondevteam/chat/commands/OOCCommand.java index 8773e87..3bfd2c2 100644 --- a/src/main/java/buttondevteam/chat/commands/OOCCommand.java +++ b/src/main/java/buttondevteam/chat/commands/OOCCommand.java @@ -4,10 +4,13 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import buttondevteam.chat.ChatPlayer; +import buttondevteam.lib.chat.CommandClass; +import buttondevteam.lib.chat.PlayerCommandBase; import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.player.TBMCPlayer; -public final class OOCCommand extends TBMCCommandBase { +@CommandClass(modOnly = false) +public final class OOCCommand extends PlayerCommandBase { @Override public String[] GetHelpText(String alias) { @@ -17,8 +20,7 @@ public final class OOCCommand extends TBMCCommandBase { } @Override - public boolean OnCommand(CommandSender sender, String alias, String[] args) { - Player player = (Player) sender; + public boolean OnCommand(Player player, String alias, String[] args) { if (args.length == 0) { return false; } else { @@ -33,19 +35,4 @@ public final class OOCCommand extends TBMCCommandBase { return true; } - @Override - public String GetCommandPath() { - return "ooc"; - } - - @Override - public boolean GetPlayerOnly() { - return true; - } - - @Override - public boolean GetModOnly() { - return false; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/UnlolCommand.java b/src/main/java/buttondevteam/chat/commands/UnlolCommand.java index de728cd..2fc79f0 100644 --- a/src/main/java/buttondevteam/chat/commands/UnlolCommand.java +++ b/src/main/java/buttondevteam/chat/commands/UnlolCommand.java @@ -6,8 +6,10 @@ import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; +import buttondevteam.lib.chat.CommandClass; import buttondevteam.lib.chat.TBMCCommandBase; +@CommandClass(modOnly = false) public final class UnlolCommand extends TBMCCommandBase { public static CommandSender Lastlol = null; @@ -35,19 +37,4 @@ public final class UnlolCommand extends TBMCCommandBase { } return true; } - - @Override - public String GetCommandPath() { - return "unlol"; - } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } } diff --git a/src/main/java/buttondevteam/chat/commands/WaitWhatCommand.java b/src/main/java/buttondevteam/chat/commands/WaitWhatCommand.java index 3e04c57..c8c8f9f 100644 --- a/src/main/java/buttondevteam/chat/commands/WaitWhatCommand.java +++ b/src/main/java/buttondevteam/chat/commands/WaitWhatCommand.java @@ -4,20 +4,26 @@ import java.util.Arrays; import java.util.stream.Collectors; import org.bukkit.command.CommandSender; +import org.bukkit.command.ConsoleCommandSender; import org.bukkit.entity.Player; import buttondevteam.chat.ChatPlayer; +import buttondevteam.chat.listener.PlayerListener; import buttondevteam.lib.chat.Channel; +import buttondevteam.lib.chat.CommandClass; import buttondevteam.lib.chat.TBMCChatAPI; import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.player.TBMCPlayer; +@CommandClass(modOnly = false) public class WaitWhatCommand extends TBMCCommandBase { @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { Channel channel; if (sender instanceof Player && ((Player) sender).isOnline()) channel = TBMCPlayer.getPlayer(((Player) sender).getUniqueId(), ChatPlayer.class).CurrentChannel; + else if (sender instanceof ConsoleCommandSender) + channel = PlayerListener.ConsoleChannel; else channel = Channel.GlobalChat; final String message; @@ -36,14 +42,4 @@ public class WaitWhatCommand extends TBMCCommandBase { "Wait what" // }; } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } } diff --git a/src/main/java/buttondevteam/chat/commands/YeehawCommand.java b/src/main/java/buttondevteam/chat/commands/YeehawCommand.java index a8f6d94..6a4b563 100644 --- a/src/main/java/buttondevteam/chat/commands/YeehawCommand.java +++ b/src/main/java/buttondevteam/chat/commands/YeehawCommand.java @@ -4,9 +4,11 @@ import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; +import buttondevteam.lib.chat.CommandClass; import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.player.TBMCYEEHAWEvent; +@CommandClass(modOnly = false) public class YeehawCommand extends TBMCCommandBase { @Override @@ -26,19 +28,4 @@ public class YeehawCommand extends TBMCCommandBase { Bukkit.getPluginManager().callEvent(new TBMCYEEHAWEvent(sender)); return true; } - - @Override - public String GetCommandPath() { - return "yeehaw"; - } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } } diff --git a/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java b/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java index 0a566ce..bcf62d0 100644 --- a/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java +++ b/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java @@ -6,10 +6,12 @@ import org.bukkit.entity.Player; import buttondevteam.chat.ChatPlayer; import buttondevteam.chat.listener.PlayerListener; import buttondevteam.lib.chat.Channel; +import buttondevteam.lib.chat.CommandClass; import buttondevteam.lib.chat.TBMCChatAPI; import buttondevteam.lib.chat.TBMCCommandBase; import buttondevteam.lib.player.TBMCPlayer; +@CommandClass(modOnly = false) public abstract class AppendTextCommandBase extends TBMCCommandBase { public abstract String[] GetHelpText(String alias); @@ -31,14 +33,4 @@ public abstract class AppendTextCommandBase extends TBMCCommandBase { TBMCChatAPI.SendChatMessage(Channel.GlobalChat, sender, msg); return true; } - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return false; - } } diff --git a/src/main/java/buttondevteam/chat/commands/appendtext/ShrugCommand.java b/src/main/java/buttondevteam/chat/commands/appendtext/ShrugCommand.java index e2fc0f0..56d30dc 100644 --- a/src/main/java/buttondevteam/chat/commands/appendtext/ShrugCommand.java +++ b/src/main/java/buttondevteam/chat/commands/appendtext/ShrugCommand.java @@ -4,10 +4,10 @@ public final class ShrugCommand extends AppendTextCommandBase { @Override public String[] GetHelpText(String alias) { - return new String[] { "§6---- Shrug ----", - "This command appends a shrug after your message", - "Or just makes you shrug", - "Use either /" + alias + " or just /" + alias }; + return new String[] { "§6---- Shrug ----", // + "This command appends a shrug after your message", // + "Or just makes you shrug", // + "Use either /" + alias + " or just /" + alias }; // } @Override @@ -15,9 +15,4 @@ public final class ShrugCommand extends AppendTextCommandBase { return "¯\\\\\\_(ツ)\\_/¯"; } - @Override - public String GetCommandPath() { - return "shrug"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/appendtext/TableflipCommand.java b/src/main/java/buttondevteam/chat/commands/appendtext/TableflipCommand.java index 7322871..6a98cc9 100644 --- a/src/main/java/buttondevteam/chat/commands/appendtext/TableflipCommand.java +++ b/src/main/java/buttondevteam/chat/commands/appendtext/TableflipCommand.java @@ -4,9 +4,9 @@ public final class TableflipCommand extends AppendTextCommandBase { @Override public String[] GetHelpText(String alias) { - return new String[] { "§6---- Tableflip ----", - "This command appends a tableflip after your message", - "Or just makes you tableflip", + return new String[] { "§6---- Tableflip ----", // + "This command appends a tableflip after your message", // + "Or just makes you tableflip", // "Use either /" + alias + " or just /" + alias }; } @@ -14,9 +14,4 @@ public final class TableflipCommand extends AppendTextCommandBase { public String GetAppendedText() { return "(╯°□°)╯︵ ┻━┻"; } - - @Override - public String GetCommandPath() { - return "tableflip"; - } } diff --git a/src/main/java/buttondevteam/chat/commands/appendtext/UnflipCommand.java b/src/main/java/buttondevteam/chat/commands/appendtext/UnflipCommand.java index 7f0e92b..498e077 100644 --- a/src/main/java/buttondevteam/chat/commands/appendtext/UnflipCommand.java +++ b/src/main/java/buttondevteam/chat/commands/appendtext/UnflipCommand.java @@ -4,9 +4,9 @@ public final class UnflipCommand extends AppendTextCommandBase { @Override public String[] GetHelpText(String alias) { - return new String[] { "§6---- Unflip ----", - "This command appends an unflip after your message", - "Or just unflips as you", + return new String[] { "§6---- Unflip ----", // + "This command appends an unflip after your message", // + "Or just unflips as you", // "Use either /" + alias + " or just /" + alias }; } @@ -15,9 +15,4 @@ public final class UnflipCommand extends AppendTextCommandBase { return "┬─┬ ノ( ゜-゜ノ)"; } - @Override - public String GetCommandPath() { - return "unflip"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/AcceptCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/AcceptCommand.java index 14a84aa..69cca30 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/AcceptCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/AcceptCommand.java @@ -10,8 +10,12 @@ import buttondevteam.chat.FlairStates; import buttondevteam.chat.PlayerJoinTimerTask; import buttondevteam.chat.PluginMain; import buttondevteam.lib.TBMCCoreAPI; +import buttondevteam.lib.chat.CommandClass; +import buttondevteam.lib.chat.OptionallyPlayerCommandClass; import buttondevteam.lib.player.TBMCPlayer; +@CommandClass(modOnly = false) +@OptionallyPlayerCommandClass(playerOnly = false) public class AcceptCommand extends UCommandBase { @Override @@ -92,9 +96,4 @@ public class AcceptCommand extends UCommandBase { return true; } - @Override - public String GetUCommandPath() { - return "accept"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/CCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/CCommand.java index e0be2d0..50a29e1 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/CCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/CCommand.java @@ -54,9 +54,4 @@ public class CCommand extends UCommandBase { return true; } - @Override - public String GetUCommandPath() { - return "c"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/UCommandBase.java b/src/main/java/buttondevteam/chat/commands/ucmds/UCommandBase.java index 2ebc393..2e10e17 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/UCommandBase.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/UCommandBase.java @@ -1,25 +1,13 @@ package buttondevteam.chat.commands.ucmds; -import buttondevteam.lib.chat.TBMCCommandBase; +import buttondevteam.lib.chat.CommandClass; +import buttondevteam.lib.chat.OptionallyPlayerCommandBase; +import buttondevteam.lib.chat.OptionallyPlayerCommandClass; -public abstract class UCommandBase extends TBMCCommandBase { +@CommandClass(modOnly = false, path = "u") +@OptionallyPlayerCommandClass(playerOnly = false) +public abstract class UCommandBase extends OptionallyPlayerCommandBase { public abstract String[] GetHelpText(String alias); - @Override - public String GetCommandPath() { - return "u " + GetUCommandPath(); - } - - public abstract String GetUCommandPath(); - - @Override - public boolean GetPlayerOnly() { - return true; - } - - @Override - public boolean GetModOnly() { - return false; - } } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/AdminCommandBase.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/AdminCommandBase.java index 97bec7b..9169762 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/AdminCommandBase.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/AdminCommandBase.java @@ -1,25 +1,11 @@ package buttondevteam.chat.commands.ucmds.admin; import buttondevteam.chat.commands.ucmds.UCommandBase; +import buttondevteam.lib.chat.CommandClass; +@CommandClass(modOnly = true) public abstract class AdminCommandBase extends UCommandBase { public abstract String[] GetHelpText(String alias); - @Override - public String GetUCommandPath() { - return "admin " + GetAdminCommandPath(); - } - - @Override - public boolean GetPlayerOnly() { - return false; // Allow admin commands in console - } - - public abstract String GetAdminCommandPath(); - - @Override - public boolean GetModOnly() { - return true; - } } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/DebugCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/DebugCommand.java index 8cd99db..0ae61e8 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/DebugCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/DebugCommand.java @@ -13,11 +13,6 @@ public class DebugCommand extends AdminCommandBase { "Toggles debug mode, which prints debug messages to the console." }; } - @Override - public String GetAdminCommandPath() { - return "debug"; - } - @Override public boolean OnCommand(CommandSender sender, String alias, String[] args) { sender.sendMessage("§eDebug mode " + ((DebugMode = !DebugMode) ? "§aenabled." : "§cdisabled.")); diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/PlayerInfoCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/PlayerInfoCommand.java index ea09149..241c0a1 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/PlayerInfoCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/PlayerInfoCommand.java @@ -40,9 +40,4 @@ public class PlayerInfoCommand extends AdminCommandBase { return true; } - @Override - public String GetAdminCommandPath() { - return "playerinfo"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/SaveCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/SaveCommand.java index aad95c3..552d1b6 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/SaveCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/SaveCommand.java @@ -20,9 +20,4 @@ public class SaveCommand extends AdminCommandBase { return true; } - @Override - public String GetAdminCommandPath() { - return "save"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/SetFlairCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/SetFlairCommand.java index 80d405b..e932138 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/SetFlairCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/SetFlairCommand.java @@ -68,9 +68,4 @@ public class SetFlairCommand extends AdminCommandBase { return true; } - @Override - public String GetAdminCommandPath() { - return "setflair"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java index e90f40b..1cfde5a 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java @@ -39,9 +39,4 @@ public class UpdatePlugin extends AdminCommandBase { } } - @Override - public String GetAdminCommandPath() { - return "updateplugin"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/AddCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/AddCommand.java index 547e5e3..be359b2 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/AddCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/AddCommand.java @@ -34,9 +34,4 @@ public class AddCommand extends AnnounceCommandBase { return true; } - @Override - public String GetAnnounceCommandPath() { - return "add"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/AnnounceCommandBase.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/AnnounceCommandBase.java index ac9a70d..c721891 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/AnnounceCommandBase.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/AnnounceCommandBase.java @@ -1,25 +1,13 @@ package buttondevteam.chat.commands.ucmds.announce; import buttondevteam.chat.commands.ucmds.UCommandBase; +import buttondevteam.lib.chat.CommandClass; +import buttondevteam.lib.chat.OptionallyPlayerCommandClass; +@CommandClass(modOnly = true) +@OptionallyPlayerCommandClass(playerOnly = false) public abstract class AnnounceCommandBase extends UCommandBase { public abstract String[] GetHelpText(String alias); - @Override - public String GetUCommandPath() { - return "announce " + GetAnnounceCommandPath(); - } - - public abstract String GetAnnounceCommandPath(); - - @Override - public boolean GetPlayerOnly() { - return false; - } - - @Override - public boolean GetModOnly() { - return true; - } } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/EditCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/EditCommand.java index d0ffdef..42b3ada 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/EditCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/EditCommand.java @@ -42,9 +42,4 @@ public class EditCommand extends AnnounceCommandBase { return true; } - @Override - public String GetAnnounceCommandPath() { - return "edit"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/ListCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/ListCommand.java index e5bc6e5..079e2a2 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/ListCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/ListCommand.java @@ -25,9 +25,4 @@ public class ListCommand extends AnnounceCommandBase { return true; } - @Override - public String GetAnnounceCommandPath() { - return "list"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/RemoveCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/RemoveCommand.java index f6f544c..3e4cda1 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/RemoveCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/RemoveCommand.java @@ -27,9 +27,4 @@ public class RemoveCommand extends AnnounceCommandBase { return true; } - @Override - public String GetAnnounceCommandPath() { - return "remove"; - } - } diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/announce/SetTimeCommand.java b/src/main/java/buttondevteam/chat/commands/ucmds/announce/SetTimeCommand.java index 86fdb8d..fe488d6 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/announce/SetTimeCommand.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/announce/SetTimeCommand.java @@ -30,9 +30,4 @@ public class SetTimeCommand extends AnnounceCommandBase { return true; } - @Override - public String GetAnnounceCommandPath() { - return "settime"; - } - }