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"));