mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fix plot leave
This commit is contained in:
parent
f721a7c66c
commit
4622f4b51d
@ -58,7 +58,7 @@ public class Leave extends Command {
|
||||
RunnableVal2<Command, CommandResult> whenDone) 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("member.not_added_trusted"));
|
||||
checkTrue(plot.isAdded(player.getUUID()), TranslatableCaption.of("members.not_added_trusted"));
|
||||
if (args.length == 0) {
|
||||
sendUsage(player);
|
||||
return CompletableFuture.completedFuture(false);
|
||||
|
Loading…
Reference in New Issue
Block a user