Class RegionGroupFlag
java.lang.Object
com.sk89q.worldguard.protection.flags.Flag<RegionGroup>
com.sk89q.worldguard.protection.flags.EnumFlag<RegionGroup>
com.sk89q.worldguard.protection.flags.RegionGroupFlag
Stores a region group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectValue
(String input) Fuzzy detect the value if the value is not found.Get the default value.static boolean
isMember
(ApplicableRegionSet set, RegionGroup group, LocalPlayer player) static boolean
isMember
(ProtectedRegion region, RegionGroup group, LocalPlayer player) Methods inherited from class com.sk89q.worldguard.protection.flags.EnumFlag
getEnumClass, marshal, parseInput, unmarshal
Methods inherited from class com.sk89q.worldguard.protection.flags.Flag
chooseValue, getName, getRegionGroupFlag, hasConflictStrategy, implicitlySetWithMembership, isValidName, requiresSubject, toString, usesMembershipAsDefault
-
Constructor Details
-
RegionGroupFlag
-
-
Method Details
-
getDefault
Description copied from class:Flag
Get the default value.- Overrides:
getDefault
in classFlag<RegionGroup>
- Returns:
- The default value, if one exists, otherwise
null
may be returned
-
detectValue
Description copied from class:EnumFlag
Fuzzy detect the value if the value is not found.- Overrides:
detectValue
in classEnumFlag<RegionGroup>
- Parameters:
input
- string input- Returns:
- value or null
-
isMember
public static boolean isMember(ProtectedRegion region, RegionGroup group, @Nullable LocalPlayer player) -
isMember
public static boolean isMember(ApplicableRegionSet set, @Nullable RegionGroup group, LocalPlayer player)
-