| Constructor and Description |
|---|
StringFlag(String name) |
StringFlag(String name,
RegionGroup defaultGroup) |
StringFlag(String name,
RegionGroup defaultGroup,
String defaultValue) |
StringFlag(String name,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefault()
Get the default value.
|
Object |
marshal(String o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
String |
parseInput(WorldGuardPlugin plugin,
org.bukkit.command.CommandSender sender,
String input)
Parse a given input to coerce it to a type compatible with the flag.
|
String |
unmarshal(Object o)
Convert a raw type that was loaded (from a YAML file, for example)
into the type that this flag uses.
|
chooseValue, getName, getRegionGroupFlag, hasConflictStrategy, implicitlySetWithMembership, requiresSubject, toString, usesMembershipAsDefaultpublic StringFlag(String name)
public StringFlag(String name, RegionGroup defaultGroup)
public StringFlag(String name, RegionGroup defaultGroup, String defaultValue)
@Nullable public String getDefault()
FlaggetDefault in class Flag<String>null may be returnedpublic String parseInput(WorldGuardPlugin plugin, org.bukkit.command.CommandSender sender, String input) throws InvalidFlagFormat
FlagparseInput in class Flag<String>plugin - The pluginsender - The senderinput - THe inputInvalidFlagFormat - Raised if the input is invalidpublic String unmarshal(Object o)
FlagCopyright © 2015. All Rights Reserved.