mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Tweak
This commit is contained in:
parent
08cc8c58f2
commit
0988ef7311
@ -93,6 +93,16 @@ public class PlotHandler {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return PlotHandler.isOwner(plot, uuid);
|
||||
if (plot.isMerged()) {
|
||||
Plot top = MainUtil.getTopPlot(plot);
|
||||
ArrayList<PlotId> ids = MainUtil.getPlotSelectionIds(plot.id, top.id);
|
||||
for (PlotId id : ids) {
|
||||
UUID owner = MainUtil.getPlot(plot.world, id).owner;
|
||||
if (owner != null && owner.equals(uuid)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user