Search in sources :

Example 1 with RegionContainerImpl

use of com.sk89q.worldguard.protection.managers.RegionContainerImpl in project WorldGuard by EngineHub.

the class RegionContainer method initialize.

/**
 * Initialize the region container.
 */
public void initialize() {
    ConfigurationManager config = WorldGuard.getInstance().getPlatform().getGlobalStateManager();
    container = new RegionContainerImpl(config.selectedRegionStoreDriver, WorldGuard.getInstance().getFlagRegistry());
    loadWorlds();
    // Migrate to UUIDs
    autoMigrate();
}
Also used : RegionContainerImpl(com.sk89q.worldguard.protection.managers.RegionContainerImpl) ConfigurationManager(com.sk89q.worldguard.config.ConfigurationManager)

Aggregations

ConfigurationManager (com.sk89q.worldguard.config.ConfigurationManager)1 RegionContainerImpl (com.sk89q.worldguard.protection.managers.RegionContainerImpl)1