mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
parent
2f74368879
commit
749ab83e5d
@ -48,11 +48,11 @@ public class WEManager {
|
||||
if (area == null) {
|
||||
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;
|
||||
}
|
||||
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
||||
if (allowMember && plot.isAdded(uuid) || !allowMember && (plot.isOwner(uuid) || plot.getTrusted().contains(uuid))) {
|
||||
regions.addAll(plot.getRegions());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user