mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-07-27 16:01:41 +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
|
@ -97,6 +97,14 @@ public class MainUtil {
|
|||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public static int getPlayerPlotCount(final PlotPlayer plr) {
|
||||
int count = 0;
|
||||
for (final String world : PlotSquared.getPlotWorldsString()) {
|
||||
count += getPlayerPlotCount(world, plr);
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public static Location getDefaultHome(Plot plot) {
|
||||
PlotWorld plotworld = PlotSquared.getPlotWorld(plot.world);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue