mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
Allow global plot limit across all worlds. Closes #261
This commit is contained in:
parent
ba64bf37de
commit
352423cf93
7 changed files with 21 additions and 4 deletions
|
@ -119,7 +119,7 @@ public class Auto extends SubCommand {
|
|||
MainUtil.sendMessage(plr, C.CANT_CLAIM_MORE_PLOTS_NUM, Settings.MAX_AUTO_SIZE + "");
|
||||
return false;
|
||||
}
|
||||
final int currentPlots = MainUtil.getPlayerPlotCount(world, plr);
|
||||
final int currentPlots = Settings.GLOBAL_LIMIT ? MainUtil.getPlayerPlotCount(plr) : MainUtil.getPlayerPlotCount(world, plr);
|
||||
final int diff = currentPlots - MainUtil.getAllowedPlots(plr);
|
||||
if ((diff + (size_x * size_z)) > 0) {
|
||||
if (diff < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue