From f49d43d6a34444689bd8585a522ddc869f784661 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 10 Aug 2017 16:11:50 +1000 Subject: [PATCH] Notify player when using an invalid purge argument --- .../java/com/intellectualcrafters/plot/commands/Purge.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Purge.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Purge.java index 31a6a60fc..95eccb11c 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Purge.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Purge.java @@ -88,6 +88,9 @@ public class Purge extends SubCommand { case "u": unknown = Boolean.parseBoolean(split[1]); break; + default: + C.COMMAND_SYNTAX.send(player, getUsage()); + return false; } } final HashSet toDelete = new HashSet<>();