From 9dd9201b67a8d840f7e07c0bec331aab6f28e620 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 14 May 2020 13:10:53 +0100 Subject: [PATCH] Allow plot auto from non-plot areas if the server has only one plot area --- Core/src/main/java/com/plotsquared/core/command/Auto.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index 174f25dae..518a017d6 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -169,6 +169,9 @@ public class Auto extends SubCommand { } } } + if (PlotSquared.get().getPlotAreaManager().getAllPlotAreas().length == 1) { + plotarea = PlotSquared.get().getPlotAreaManager().getAllPlotAreas()[0]; + } if (plotarea == null) { MainUtil.sendMessage(player, Captions.NOT_IN_PLOT_WORLD); return false;