From 7f3d3ecb003406940bf2f4e30a90f173f6bde3e6 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 8 Jun 2021 14:25:08 +0200 Subject: [PATCH] Fixes #3018 --- Core/src/main/java/com/plotsquared/core/command/Leave.java | 5 +---- 1 file changed, 1 insertion(+), 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 a5672d88c..50846792d 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Leave.java +++ b/Core/src/main/java/com/plotsquared/core/command/Leave.java @@ -61,10 +61,8 @@ public class Leave extends Command { ) throws CommandException { 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 (plot.isOwner(player.getUUID())) { player.sendMessage(TranslatableCaption.of("member.plot_cant_leave_owner")); - // TODO setowner, other } else { UUID uuid = player.getUUID(); if (plot.isAdded(uuid)) { @@ -80,8 +78,7 @@ public class Leave extends Command { ); } else { player.sendMessage( - TranslatableCaption.of("errors.invalid_player"), - Template.of("value", String.valueOf(1)) + TranslatableCaption.of("members.not_added_trusted") ); } }