diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/ClearCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/ClearCommand.java index 02d1e505ba..a9df4f903c 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/ClearCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/ClearCommand.java @@ -62,6 +62,8 @@ public class ClearCommand extends VanillaCommand { int count = player.getInventory().clear(id, data); Command.broadcastCommandMessage(sender, "Cleared the inventory of " + player.getDisplayName() + ", removing " + count + " items"); + } else if (args.length == 0) { + sender.sendMessage(ChatColor.RED + "Please provide a player!"); } else { sender.sendMessage(ChatColor.RED + "Can't find player " + args[0]); }