Package com.sk89q.worldguard.config
Class ConfigurationManager
java.lang.Object
com.sk89q.worldguard.config.ConfigurationManager
- Direct Known Subclasses:
YamlConfigurationManager
Represents the global configuration and also delegates configuration
for individual worlds.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
protected static final Logger
boolean
boolean
Region Storage Configuration method, and config valuesboolean
boolean
boolean
boolean
boolean
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
disableAmphibiousMode
(LocalPlayer player) Disable amphibious mode for a player.abstract void
void
enableAmphibiousMode
(LocalPlayer player) Enable amphibious mode for a player.abstract WorldConfiguration
get
(com.sk89q.worldedit.world.World world) Get the configuration for a world.abstract File
Get the folder for storing data files and configuration.Get the folder for storing data files and configuration for each world.boolean
hasAmphibiousMode
(LocalPlayer player) Check to see if amphibious mode is enabled for a player.boolean
hasGodMode
(LocalPlayer player) Check to see if god mode is enabled for a player.abstract void
load()
Load the configuration.abstract void
unload()
Unload the configuration.
-
Field Details
-
log
-
useRegionsCreatureSpawnEvent
public boolean useRegionsCreatureSpawnEvent -
activityHaltToggle
public boolean activityHaltToggle -
useGodPermission
public boolean useGodPermission -
useGodGroup
public boolean useGodGroup -
useAmphibiousGroup
public boolean useAmphibiousGroup -
usePlayerMove
public boolean usePlayerMove -
usePlayerTeleports
public boolean usePlayerTeleports -
deopOnJoin
public boolean deopOnJoin -
blockInGameOp
public boolean blockInGameOp -
migrateRegionsToUuid
public boolean migrateRegionsToUuid -
keepUnresolvedNames
public boolean keepUnresolvedNames -
particleEffects
public boolean particleEffects -
disablePermissionCache
public boolean disablePermissionCache -
disableDefaultBypass
public boolean disableDefaultBypass -
announceBypassStatus
public boolean announceBypassStatus -
hostKeys
-
hostKeysAllowFMLClients
public boolean hostKeysAllowFMLClients -
selectedRegionStoreDriver
Region Storage Configuration method, and config values -
regionStoreDriverMap
-
-
Constructor Details
-
ConfigurationManager
public ConfigurationManager()
-
-
Method Details
-
getDataFolder
Get the folder for storing data files and configuration.- Returns:
- the data folder
-
getWorldsDataFolder
Get the folder for storing data files and configuration for each world.- Returns:
- the data folder
-
load
public abstract void load()Load the configuration. -
unload
public abstract void unload()Unload the configuration. -
get
Get the configuration for a world.- Parameters:
world
- The world to get the configuration for- Returns:
world
's configuration
-
disableUuidMigration
public abstract void disableUuidMigration() -
hasGodMode
Check to see if god mode is enabled for a player.- Parameters:
player
- The player to check- Returns:
- Whether the player has godmode through WorldGuard or CommandBook
-
enableAmphibiousMode
Enable amphibious mode for a player.- Parameters:
player
- The player to enable amphibious mode for
-
disableAmphibiousMode
Disable amphibious mode for a player.- Parameters:
player
- The player to disable amphibious mode for
-
hasAmphibiousMode
Check to see if amphibious mode is enabled for a player.- Parameters:
player
- The player to check- Returns:
- Whether
player
has amphibious mode
-