Class PriFlag
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.Flag
cn.lunadeer.dominion.api.dtos.flag.PriFlag
Represents a privilege flag in the Dominion system.
This class extends the Flag class and provides specific
configuration keys for privilege-related flags.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration default key for this privilege flag.Returns the configuration description key for this privilege flag.Returns the configuration enable key for this privilege 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
getDefaultValue, getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getEnable, getFlagName, getMaterial, setDefaultValue, setDescription, setDisplayName, setEnable, 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
-
-
Method Details
-
getConfigurationDescKey
Returns the configuration description key for this privilege flag.- Specified by:
getConfigurationDescKeyin classFlag- Returns:
- the configuration description key
-
getConfigurationDefaultKey
Returns the configuration default key for this privilege flag.- Specified by:
getConfigurationDefaultKeyin classFlag- Returns:
- the configuration default key
-
getConfigurationEnableKey
Returns the configuration enable key for this privilege flag.- Specified by:
getConfigurationEnableKeyin classFlag- Returns:
- the configuration enable key
-
getConfigurationNameKey
Description copied from class:FlagReturns the configuration key for the name of this flag.- Specified by:
getConfigurationNameKeyin classFlag- Returns:
- the configuration key for the name
-
getConfigurationMaterialKey
Description copied from class:FlagReturns the configuration key for the material of this flag.- Specified by:
getConfigurationMaterialKeyin classFlag- Returns:
- the configuration key for the material
-