Allow global plot limit across all worlds. Closes #261

This commit is contained in:
Byteflux 2015-04-14 06:47:12 -07:00
parent ba64bf37de
commit 352423cf93
7 changed files with 21 additions and 4 deletions

View file

@ -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);