Class RegionGroupFlag
java.lang.Object
com.sk89q.worldguard.protection.flags.Flag<T>
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 booleanisMember(ApplicableRegionSet set, RegionGroup group, LocalPlayer player)static booleanisMember(ProtectedRegion region, RegionGroup group, LocalPlayer player)Methods inherited from class com.sk89q.worldguard.protection.flags.EnumFlag
getEnumClass, marshal, parseInput, unmarshalMethods 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:FlagGet the default value.- Overrides:
getDefaultin classFlag<RegionGroup>- Returns:
- The default value, if one exists, otherwise
nullmay be returned
-
detectValue
Description copied from class:EnumFlagFuzzy detect the value if the value is not found.- Overrides:
detectValuein 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)
-