From d153232969ea84a53f09b834c7bc6ecea3c7eb15 Mon Sep 17 00:00:00 2001 From: Schuwi Date: Mon, 13 Jun 2022 23:44:56 +0200 Subject: [PATCH] Fix maximum plot number check in `/plot continue` counting the current plot twice (#3674) Fix max plot restriction check in continue command Co-authored-by: Alexander Brandes --- Core/src/main/java/com/plotsquared/core/command/Continue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Continue.java b/Core/src/main/java/com/plotsquared/core/command/Continue.java index 27b46787b..49433404f 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Continue.java +++ b/Core/src/main/java/com/plotsquared/core/command/Continue.java @@ -73,7 +73,7 @@ public class Continue extends SubCommand { return false; } int size = plot.getConnectedPlots().size(); - if (Settings.Done.COUNTS_TOWARDS_LIMIT && (player.getAllowedPlots() + if (!Settings.Done.COUNTS_TOWARDS_LIMIT && (player.getAllowedPlots() < player.getPlotCount() + size)) { player.sendMessage( TranslatableCaption.of("permission.cant_claim_more_plots"),