Skip to content

Commit

Permalink
fix: home commands not checking cooldowns
Browse files Browse the repository at this point in the history
Signed-off-by: Thatsmusic99 <25277367+thatsmusic99@users.noreply.github.com>
  • Loading branch information
Thatsmusic99 committed Aug 25, 2023
1 parent 1bf6d13 commit 736569b
Showing 1 changed file with 0 additions and 12 deletions.
Expand Up @@ -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;
}
}

0 comments on commit 736569b

Please sign in to comment.