mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-08 11:59:43 +01:00
Added a "none" category to region group flags (aliases noone and deny).
This commit is contained in:
parent
824e8dcb4b
commit
0bcf4b3597
@ -26,5 +26,6 @@ public enum RegionGroup {
|
||||
OWNERS,
|
||||
NON_MEMBERS,
|
||||
NON_OWNERS,
|
||||
ALL
|
||||
ALL,
|
||||
NONE
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user