Skip to content

InstanceContainerModule

InstanceContainerModule is an implementation of InstanceModule that creates a single InstanceContainer for each game using a map loaded from an Anvil world.

Dependencies

This module depends on the following modules:

Usage

Import the module:

import com.bluedragonmc.server.module.instance.InstanceContainerModule
import com.bluedragonmc.server.module.map.AnvilFileMapProviderModule // dependency

Use the module in your game’s initialize function:

use(AnvilFileMapProviderModule("games/$name/$mapName")) // This is how you specify the path to the world folder
use(InstanceContainerModule())