Fix /plot leave requiring an arg when none is needed

This commit is contained in:
N0tMyFaultOG 2020-11-19 17:10:01 +01:00
parent 0745b03271
commit aedf402c17

View File

@ -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