Class StringFlag<F extends StringFlag<F>>
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<String,F>
com.plotsquared.core.plot.flag.types.StringFlag<F>
- Direct Known Subclasses:
DescriptionFlag,DoneFlag,FarewellFlag,GreetingFlag
Plot flag representing a string value.
This should be used where strings are not "keys" themselves, e.g. when setting enums
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStringFlag(@NonNull String value, @NonNull Caption flagCategory, @NonNull Caption flagDescription) Construct a new flag instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet if the flag's permission should check for values.Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
createFlagInstance, equals, flagOf, getExample, getFlagCategory, getFlagDescription, getFlagName, getFlagNameComponent, getName, getTabCompletions, getValue, hashCode, merge, parse, toString
-
Constructor Details
-
StringFlag
protected StringFlag(@NonNull String value, @NonNull Caption flagCategory, @NonNull Caption flagDescription) Construct a new flag instance.- Parameters:
value- Flag valueflagCategory- The flag categoryflagDescription- A caption describing the flag functionality
-
-
Method Details
-
isValuedPermission
Description copied from class:PlotFlagGet if the flag's permission should check for values. E.g. plots.flag.set.music.VALUE- Overrides:
isValuedPermissionin classPlotFlag<String,F extends StringFlag<F>> - Returns:
- if valued permission
-