类 Flags
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.Flags
-
字段概要
字段修饰符和类型字段说明static final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlagstatic final EnvFlagstatic final EnvFlagstatic final PriFlagstatic final PriFlagstatic final PriFlagstatic final EnvFlagstatic final EnvFlag -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidApplies new custom flags by reloading the configuration and cache.Returns a list of all environment flags.Returns a list of all enabled environment flags.Returns a list of all flags.Returns a list of all enabled flags.Returns a list of all privilege flags.Returns a list of all enabled privilege flags.static EnvFlaggetEnvFlag(String name) Returns an environment flag by its name.static FlagReturns a flag by its name from all flags.static PriFlaggetPreFlag(String name) Returns a privilege flag by its name.static booleanregisterEnvFlag(org.bukkit.plugin.java.JavaPlugin plugin, EnvFlag flag) Registers an environment flag.static booleanregisterPriFlag(org.bukkit.plugin.java.JavaPlugin plugin, PriFlag flag) Registers a privilege flag.
-
字段详细资料
-
ANIMAL_SPAWN
-
ANIMAL_MOVE
-
VILLAGER_SPAWN
-
MONSTER_SPAWN
-
MONSTER_MOVE
-
MONSTER_DAMAGE
-
ENDER_MAN
-
TNT_EXPLODE
-
WITHER_SPAWN
-
CREEPER_EXPLODE
-
DRAGON_BREAK_BLOCK
-
FIRE_SPREAD
-
FLOW_IN_PROTECTION
-
GRAVITY_BLOCK
-
ICE_MELT
-
ICE_FORM
-
SNOW_ACCUMULATION
-
SNOW_MELT
-
TRAMPLE
-
DECAY
-
HOPPER_OUTSIDE
-
PISTON_OUTSIDE
-
TRIG_PRESSURE_PROJ
-
TRIG_PRESSURE_MOB
-
TRIG_PRESSURE_DROP
-
ITEM_FRAME_PROJ_DAMAGE
-
MOB_DROP_ITEM
-
SHOW_BORDER
-
ADMIN
-
MOVE
-
TELEPORT
-
FLY
-
RIDING
-
ENDER_PEARL
-
PLACE
-
BREAK_BLOCK
-
IGNITE
-
PICK_UP
-
DROP_ITEM
-
DOOR
-
BUTTON
-
LEVER
-
PRESSURE
-
REPEATER
-
COMPARER
-
NOTE_BLOCK
-
CONTAINER
-
HOPPER
-
CRAFT
-
CRAFTER
-
ANVIL
-
ENCHANT
-
BREW
-
BEACON
-
JUKEBOX
-
LECTERN
-
BOOKSHELF
-
DRAGON_EGG
-
ITEM_FRAME_INTERACTIVE
-
EDIT_SIGN
-
BED
-
ANCHOR
-
VEHICLE_SPAWN
-
VEHICLE_DESTROY
-
HARVEST
-
SOWING
-
FEED
-
SHEAR
-
LEASH
-
DYE
-
HONEY
-
CAKE
-
TRADE
-
SHOOT
-
EGG
-
HOOK
-
PVP
-
MONSTER_KILLING
-
ANIMAL_KILLING
-
VILLAGER_KILLING
-
GLOW
-
-
构造器详细资料
-
Flags
public Flags()
-
-
方法详细资料
-
getAllFlags
Returns a list of all flags.- 返回:
- a list of all flags
-
getAllEnvFlags
Returns a list of all environment flags.- 返回:
- a list of all environment flags
-
getAllPriFlags
Returns a list of all privilege flags.- 返回:
- a list of all privilege flags
-
getAllEnvFlagsEnable
Returns a list of all enabled environment flags.- 返回:
- a list of all enabled environment flags
-
getAllPriFlagsEnable
Returns a list of all enabled privilege flags.- 返回:
- a list of all enabled privilege flags
-
getAllFlagsEnable
Returns a list of all enabled flags.- 返回:
- a list of all enabled flags
-
getFlag
Returns a flag by its name from all flags.- 参数:
name- the name of the flag- 返回:
- the flag with the given name, or null if not found
-
getEnvFlag
Returns an environment flag by its name.- 参数:
name- the name of the environment flag- 返回:
- the environment flag with the given name, or null if not found
-
getPreFlag
Returns a privilege flag by its name.- 参数:
name- the name of the privilege flag- 返回:
- the privilege flag with the given name, or null if not found
-
registerEnvFlag
Registers an environment flag.Need to run
applyNewCustomFlags()to make the new flag work.- 参数:
plugin- the plugin registering the flagflag- the environment flag to register- 返回:
- true if the flag was successfully registered, false otherwise
-
registerPriFlag
Registers a privilege flag.Need to run
applyNewCustomFlags()to make the new flag work.- 参数:
plugin- the plugin registering the flagflag- the privilege flag to register- 返回:
- true if the flag was successfully registered, false otherwise
-
applyNewCustomFlags
Applies new custom flags by reloading the configuration and cache. This should be called after registering new flags to ensure they take effect.- 抛出:
Exception- if reloading the config or cache fails
-