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;
|
return regions;
|
||||||
}
|
}
|
||||||
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
||||||
for (Plot plot : area.getPlots()) {
|
Plot plot = player.getCurrentPlot();
|
||||||
if (!plot.isBasePlot() || (Settings.Done.RESTRICT_BUILDING && (plot.getFlag(Flags.DONE).isPresent()))) {
|
HashSet<RegionWrapper> allowed = new HashSet<>();
|
||||||
continue;
|
if (plot == null) {
|
||||||
}
|
plot = player.getMeta("WorldEditRegionPlot");
|
||||||
if (allowMember && plot.isAdded(uuid) || !allowMember && (plot.isOwner(uuid) || plot.getTrusted().contains(uuid))) {
|
}
|
||||||
regions.addAll(plot.getRegions());
|
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;
|
return regions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user