From 0bcf4b359716f32ed8c8f79beeca5c112f4ed491 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Thu, 8 Mar 2012 10:30:09 +0100 Subject: [PATCH] Added a "none" category to region group flags (aliases noone and deny). --- .../com/sk89q/worldguard/protection/flags/RegionGroup.java | 3 ++- .../com/sk89q/worldguard/protection/flags/RegionGroupFlag.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroup.java b/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroup.java index 6d911979..0c855ffb 100644 --- a/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroup.java +++ b/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroup.java @@ -26,5 +26,6 @@ public enum RegionGroup { OWNERS, NON_MEMBERS, NON_OWNERS, - ALL + ALL, + NONE } diff --git a/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroupFlag.java b/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroupFlag.java index e57d88e2..d43ae50f 100644 --- a/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroupFlag.java +++ b/src/main/java/com/sk89q/worldguard/protection/flags/RegionGroupFlag.java @@ -53,6 +53,8 @@ public RegionGroup detectValue(String input) { return RegionGroup.NON_MEMBERS; } else if (input.equalsIgnoreCase("everyone") || input.equalsIgnoreCase("anyone") || input.equalsIgnoreCase("all")) { return RegionGroup.ALL; + } else if (input.equalsIgnoreCase("none") || input.equalsIgnoreCase("noone") || input.equalsIgnoreCase("deny")) { + return RegionGroup.NONE; } else { return null; }