Class ConfigurationManager

java.lang.Object
com.sk89q.worldguard.config.ConfigurationManager
Direct Known Subclasses:
YamlConfigurationManager

public abstract class ConfigurationManager extends Object
Represents the global configuration and also delegates configuration for individual worlds.
  • Field Details

    • log

      protected static final Logger 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

      public Map<String,String> hostKeys
    • hostKeysAllowFMLClients

      public boolean hostKeysAllowFMLClients
    • selectedRegionStoreDriver

      public RegionDriver selectedRegionStoreDriver
      Region Storage Configuration method, and config values
    • regionStoreDriverMap

      public Map<DriverType,RegionDriver> regionStoreDriverMap
  • Constructor Details

    • ConfigurationManager

      public ConfigurationManager()
  • Method Details

    • getDataFolder

      public abstract File getDataFolder()
      Get the folder for storing data files and configuration.
      Returns:
      the data folder
    • getWorldsDataFolder

      public File 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

      public abstract WorldConfiguration get(com.sk89q.worldedit.world.World world)
      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

      public boolean hasGodMode(LocalPlayer player)
      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

      public void enableAmphibiousMode(LocalPlayer player)
      Enable amphibious mode for a player.
      Parameters:
      player - The player to enable amphibious mode for
    • disableAmphibiousMode

      public void disableAmphibiousMode(LocalPlayer player)
      Disable amphibious mode for a player.
      Parameters:
      player - The player to disable amphibious mode for
    • hasAmphibiousMode

      public boolean hasAmphibiousMode(LocalPlayer player)
      Check to see if amphibious mode is enabled for a player.
      Parameters:
      player - The player to check
      Returns:
      Whether player has amphibious mode