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 <mc.cache@web.de>
This commit is contained in:
Schuwi 2022-06-13 23:44:56 +02:00 committed by GitHub
parent bb0aa8d5cc
commit d153232969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"),