Class PriFlag
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.Flag
cn.lunadeer.dominion.api.dtos.flag.PriFlag
A flag controlling an action that players may perform in a dominion.
Privilege flags use the privilege.<flag> configuration namespace.
-
Constructor Summary
ConstructorsConstructorDescriptionPriFlag(@NotNull String flag_name, @NotNull String display_name, @NotNull String description, @NotNull Boolean default_value, @NotNull Boolean enable, @NotNull org.bukkit.Material material) Constructs a new PriFlag with the specified parameters.PriFlag(@NotNull String flag_name, @NotNull String display_name, @NotNull String description, @NotNull Boolean default_value, @NotNull Boolean enable, @NotNull org.bukkit.Material material, @Nullable String icon) Constructs a privilege flag with an optional native Dialog UI icon. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration key for the default value of this flag.Returns the configuration key for the description of this flag.Returns the configuration key for the enable status of this flag.Returns the configuration key for the material of this flag.Returns the configuration key for the name of this flag.Methods inherited from class cn.lunadeer.dominion.api.dtos.flag.Flag
getConfigurationDialogUiIconKey, getDefaultValue, getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getEnable, getFlagName, getIcon, getMaterial, setDefaultValue, setDescription, setDisplayName, setEnable, setIcon, setMaterial
-
Constructor Details
-
PriFlag
public PriFlag(@NotNull @NotNull String flag_name, @NotNull @NotNull String display_name, @NotNull @NotNull String description, @NotNull @NotNull Boolean default_value, @NotNull @NotNull Boolean enable, @NotNull @NotNull org.bukkit.Material material) Constructs a new PriFlag with the specified parameters.- Parameters:
flag_name- the name of the flagdisplay_name- the display name of the flagdescription- the description of the flagdefault_value- the default value of the flagenable- the enable status of the flagmaterial- the material of flag in CUI
-
PriFlag
public PriFlag(@NotNull @NotNull String flag_name, @NotNull @NotNull String display_name, @NotNull @NotNull String description, @NotNull @NotNull Boolean default_value, @NotNull @NotNull Boolean enable, @NotNull @NotNull org.bukkit.Material material, @Nullable @Nullable String icon) Constructs a privilege flag with an optional native Dialog UI icon.- Parameters:
flag_name- the stable flag namedisplay_name- the default display namedescription- the default descriptiondefault_value- the default valueenable- whether the flag is enabledmaterial- the material used in chest UIsicon- the Dialog UI sprite path, ornullfor no icon
-
-
Method Details
-
getConfigurationDescKey
Returns the configuration key for the description of this flag.- Specified by:
getConfigurationDescKeyin classFlag- Returns:
- the configuration key for the description
-
getConfigurationDefaultKey
Returns the configuration key for the default value of this flag.- Specified by:
getConfigurationDefaultKeyin classFlag- Returns:
- the configuration key for the default value
-
getConfigurationEnableKey
Returns the configuration key for the enable status of this flag.- Specified by:
getConfigurationEnableKeyin classFlag- Returns:
- the configuration key for the enable status
-
getConfigurationNameKey
Returns the configuration key for the name of this flag.- Specified by:
getConfigurationNameKeyin classFlag- Returns:
- the configuration key for the name
-
getConfigurationMaterialKey
Returns the configuration key for the material of this flag.- Specified by:
getConfigurationMaterialKeyin classFlag- Returns:
- the configuration key for the material
-