diff --git a/src/com/sk89q/worldguard/bukkit/commands/RegionCommands.java b/src/com/sk89q/worldguard/bukkit/commands/RegionCommands.java index 70cf6738..6488ffc3 100644 --- a/src/com/sk89q/worldguard/bukkit/commands/RegionCommands.java +++ b/src/com/sk89q/worldguard/bukkit/commands/RegionCommands.java @@ -494,6 +494,23 @@ public static void flag(CommandContext args, WorldGuardPlugin plugin, if (list.length() > 0) { list.append(", "); } + + if (region.isOwner(localPlayer)) { + if (!plugin.hasPermission(sender, "worldguard.region.flag.flags." + + flag.getName() + ".owner." + id.toLowerCase())) { + continue; + } + } else if (region.isMember(localPlayer)) { + if (!plugin.hasPermission(sender, "worldguard.region.flag.flags." + + flag.getName() + ".member." + id.toLowerCase())) { + continue; + } + } else { + if (!plugin.hasPermission(sender, "worldguard.region.flag.flags." + + flag.getName() + "." + id.toLowerCase())) { + continue; + } + } list.append(flag.getName()); }