From 736569ba68287e54efe95f88ef261825072e9111 Mon Sep 17 00:00:00 2001 From: Thatsmusic99 <25277367+thatsmusic99@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:49:30 +0100 Subject: [PATCH] fix: home commands not checking cooldowns Signed-off-by: Thatsmusic99 <25277367+thatsmusic99@users.noreply.github.com> --- .../commands/home/AbstractHomeCommand.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/AdvancedTeleport-Bukkit/src/main/java/io/github/niestrat99/advancedteleport/commands/home/AbstractHomeCommand.java b/AdvancedTeleport-Bukkit/src/main/java/io/github/niestrat99/advancedteleport/commands/home/AbstractHomeCommand.java index 303bc18b..dc5e09be 100644 --- a/AdvancedTeleport-Bukkit/src/main/java/io/github/niestrat99/advancedteleport/commands/home/AbstractHomeCommand.java +++ b/AdvancedTeleport-Bukkit/src/main/java/io/github/niestrat99/advancedteleport/commands/home/AbstractHomeCommand.java @@ -55,16 +55,4 @@ public abstract class AbstractHomeCommand extends ATCommand { public boolean getRequiredFeature() { return MainConfig.get().USE_HOMES.get(); } - - @Override - public boolean canProceed(@NotNull final CommandSender sender) { - if (!super.canProceed(sender)) return false; - - if (!(sender instanceof Player)) { - CustomMessages.sendMessage(sender, "Error.notAPlayer"); - return false; - } - - return true; - } }