Fix /AbandonAllClaims usage (#1009)

Closes #1008
This commit is contained in:
Adam 2020-09-14 11:19:06 -04:00 committed by GitHub
parent 39f385e51c
commit e8c9222337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1318,9 +1318,9 @@ public class GriefPrevention extends JavaPlugin
//abandonallclaims
else if (cmd.getName().equalsIgnoreCase("abandonallclaims") && player != null)
{
if (args.length != 1) return false;
if (args.length > 1) return false;
if (!"confirm".equalsIgnoreCase(args[0]))
if (args.length != 1 || !"confirm".equalsIgnoreCase(args[0]))
{
GriefPrevention.sendMessage(player, TextMode.Err, Messages.ConfirmAbandonAllClaims);
return true;