mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Allow plot auto from non-plot areas if the server has only one plot area
This commit is contained in:
parent
8fb9f29ab7
commit
9dd9201b67
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
if (plotarea == null) {
|
||||||
MainUtil.sendMessage(player, Captions.NOT_IN_PLOT_WORLD);
|
MainUtil.sendMessage(player, Captions.NOT_IN_PLOT_WORLD);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue