mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 21:43:11 +00:00
Tweak
This commit is contained in:
parent
08cc8c58f2
commit
0988ef7311
1 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue