mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fix plot leave
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user