mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fixes #1307
This commit is contained in:
parent
7d11147836
commit
2806f8b20c
@ -49,13 +49,14 @@ public class WEManager {
|
||||
return regions;
|
||||
}
|
||||
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
||||
for (Plot plot : area.getPlots()) {
|
||||
if (!plot.isBasePlot() || (Settings.Done.RESTRICT_BUILDING && (plot.getFlag(Flags.DONE).isPresent()))) {
|
||||
continue;
|
||||
Plot plot = player.getCurrentPlot();
|
||||
HashSet<RegionWrapper> allowed = new HashSet<>();
|
||||
if (plot == null) {
|
||||
plot = player.getMeta("WorldEditRegionPlot");
|
||||
}
|
||||
if (allowMember && plot.isAdded(uuid) || !allowMember && (plot.isOwner(uuid) || plot.getTrusted().contains(uuid))) {
|
||||
if (plot != null && (!Settings.Done.RESTRICT_BUILDING || !Flags.DONE.isSet(plot)) && ((allowMember && plot.isAdded(uuid)) || (!allowMember && (plot.isOwner(uuid)) || plot.getTrusted().contains(uuid)))) {
|
||||
regions.addAll(plot.getRegions());
|
||||
}
|
||||
player.setMeta("WorldEditRegionPlot", plot);
|
||||
}
|
||||
return regions;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user