Notify player when using an invalid purge argument

This commit is contained in:
Jesse Boyd 2017-08-10 16:11:50 +10:00
parent cc1324f581
commit f49d43d6a3
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -88,6 +88,9 @@ public class Purge extends SubCommand {
case "u": case "u":
unknown = Boolean.parseBoolean(split[1]); unknown = Boolean.parseBoolean(split[1]);
break; break;
default:
C.COMMAND_SYNTAX.send(player, getUsage());
return false;
} }
} }
final HashSet<Plot> toDelete = new HashSet<>(); final HashSet<Plot> toDelete = new HashSet<>();