mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
parent
2f74368879
commit
749ab83e5d
@ -48,11 +48,11 @@ public class WEManager {
|
|||||||
if (area == null) {
|
if (area == null) {
|
||||||
return regions;
|
return regions;
|
||||||
}
|
}
|
||||||
|
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
||||||
for (Plot plot : area.getPlots()) {
|
for (Plot plot : area.getPlots()) {
|
||||||
if (!plot.isBasePlot() || (Settings.Done.RESTRICT_BUILDING && (plot.getFlag(Flags.DONE).isPresent()))) {
|
if (!plot.isBasePlot() || (Settings.Done.RESTRICT_BUILDING && (plot.getFlag(Flags.DONE).isPresent()))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
boolean allowMember = player.hasPermission("plots.worldedit.member");
|
|
||||||
if (allowMember && plot.isAdded(uuid) || !allowMember && (plot.isOwner(uuid) || plot.getTrusted().contains(uuid))) {
|
if (allowMember && plot.isAdded(uuid) || !allowMember && (plot.isOwner(uuid) || plot.getTrusted().contains(uuid))) {
|
||||||
regions.addAll(plot.getRegions());
|
regions.addAll(plot.getRegions());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user