diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java index 2ee1f159..36f56241 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java @@ -798,6 +798,12 @@ public void flag(CommandContext args, CommandSender sender) throws CommandExcept // Clear the flag only if neither [value] nor [-g group] was given region.setFlag(foundFlag, null); + // Also clear the associated group flag if one exists + RegionGroupFlag groupFlag = foundFlag.getRegionGroupFlag(); + if (groupFlag != null) { + region.setFlag(groupFlag, null); + } + sender.sendMessage(ChatColor.YELLOW + "Region flag '" + foundFlag.getName() + "' cleared."); }