diff --git a/src/main/java/Main/LofiCaptchaDiscord/Command/Command.java b/src/main/java/Main/LofiCaptchaDiscord/Command/Command.java deleted file mode 100644 index 5cc3df9..0000000 --- a/src/main/java/Main/LofiCaptchaDiscord/Command/Command.java +++ /dev/null @@ -1,40 +0,0 @@ -package Main.LofiCaptchaDiscord.Command; - -import org.bukkit.command.CommandExecutor; -import org.bukkit.command.CommandSender; -import org.bukkit.command.ConsoleCommandSender; - -import Main.LofiCaptchaDiscord.Main; -import Main.LofiCaptchaDiscord.listeners.Listeners; - -public class Command implements CommandExecutor { - @SuppressWarnings("unused") - private Main plugin; - private Listeners listener; - private String nickToRemove; - - public Command(Main plugin) { - this.plugin = plugin; - listener = plugin.getListener(); - } - - @Override - public boolean onCommand(CommandSender sender, org.bukkit.command.Command command, String label, String[] args) { - if (!(sender instanceof ConsoleCommandSender)) { - sender.sendMessage("Команда доступна только из консоли!"); - return true; - } - if (args.length < 1) { - sender.sendMessage("Укажите ник игрока для удаления."); - return true; - } - nickToRemove = args[0]; - if (listener == null) return true; - listener.onPlayerSuccess(nickToRemove); - return true; - } - - public String getNickToRemove() { - return this.nickToRemove; - } -} \ No newline at end of file