From eb8676d96937a732f98dd12e46697fff8a6f759a Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 24 Sep 2023 15:32:57 +0700 Subject: [PATCH] clear chad .. --- .../chayapak/chomens_bot/commands/ClearChatCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatCommand.java index d0e04c2..1a10fdd 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ClearChatCommand.java @@ -29,7 +29,7 @@ public class ClearChatCommand extends Command { final String name = context.getString(true, false); - if (name.isEmpty()) { + if (!name.isEmpty()) { final PlayerEntry entry = bot.players.getEntry(name); if (entry == null) throw new CommandException(Component.text("Invalid player name"));