[IN PROGRESS] multi-owner mega plots

This commit is contained in:
boy0001 2015-03-20 13:13:27 +11:00
parent 657c1a1d54
commit bdbebfa29d
19 changed files with 283 additions and 100 deletions

View file

@ -52,6 +52,7 @@ import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotBlock;
import com.intellectualcrafters.plot.object.PlotCluster;
import com.intellectualcrafters.plot.object.PlotGenerator;
import com.intellectualcrafters.plot.object.PlotHandler;
import com.intellectualcrafters.plot.object.PlotId;
import com.intellectualcrafters.plot.object.PlotManager;
import com.intellectualcrafters.plot.object.PlotPlayer;
@ -206,7 +207,7 @@ public class PlotSquared {
final ArrayList<Plot> myplots = new ArrayList<>();
for (final Plot plot : getPlots(world).values()) {
if (plot.hasOwner()) {
if (plot.getOwner().equals(uuid)) {
if (PlotHandler.isOwner(plot, uuid)) {
myplots.add(plot);
}
}
@ -247,7 +248,7 @@ public class PlotSquared {
if (isPlotWorld(world)) {
for (final Plot plot : plots.get(world).values()) {
if (plot.hasOwner()) {
if (plot.getOwner().equals(uuid)) {
if (PlotHandler.isOwner(plot, uuid)) {
myplots.add(plot);
}
}