From aedf402c1754b389b7e225c27ebfdea286938dd6 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Thu, 19 Nov 2020 17:10:01 +0100 Subject: [PATCH] Fix /plot leave requiring an arg when none is needed --- Core/src/main/java/com/plotsquared/core/command/Leave.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Leave.java b/Core/src/main/java/com/plotsquared/core/command/Leave.java index afb65e8d9..c531e6603 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Leave.java +++ b/Core/src/main/java/com/plotsquared/core/command/Leave.java @@ -59,10 +59,6 @@ public class Leave extends Command { final Plot plot = check(player.getCurrentPlot(), TranslatableCaption.of("errors.not_in_plot")); checkTrue(plot.hasOwner(), TranslatableCaption.of("info.plot_unowned")); checkTrue(plot.isAdded(player.getUUID()), TranslatableCaption.of("members.not_added_trusted")); - if (args.length == 0) { - sendUsage(player); - return CompletableFuture.completedFuture(false); - } if (plot.isOwner(player.getUUID())) { checkTrue(plot.hasOwner(), TranslatableCaption.of("member.already_owner")); // TODO setowner, other