mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 13:33:11 +00:00
[IN PROGRESS] multi-owner mega plots
This commit is contained in:
parent
657c1a1d54
commit
bdbebfa29d
19 changed files with 283 additions and 100 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue