An extension for Minestom to manage worlds that can be saved to the disk.
Get the release and place it in the extension folder of your minestom server.
Worlds are stored in the worlds
directory at the root of your server.
Command | Permission |
---|---|
/bw save-all | brickworlds.save-all |
/bw save (world) | brickworlds.save |
/bw load (world) | brickworlds.load |
/bw unload (world) | brickworlds.unload |
/bw setspawn | brickworlds.setspawn |
/bw teleport (world) | brickworlds.teleport |
/bw create (world) | brickworlds.create |
/bw create (world) (generator) | brickworlds.create |
You can change the settings in the config.json
.
Load worlds on extension startup.
{
"loadOnStartup": [
"world"
]
}
Change the default world. This is the world players will spawn in. Must be present in loadOnStartup
.
{
"defaultWorld": "world"
}
Change autosave interval in minutes. Use 0 to disable autosaving.
{
"autoSaveInterval": 10
}
repositories {
maven { url "https://repo.jorisg.com/snapshots" }
}
dependencies {
implementation 'com.guflimc.brick.worlds:minestom-api:+'
}
Check javadocs here.
MinestomWorldAPI.get().create("universe");
MinestomWorldAPI.get().availableWorlds().forEach(info -> System.out.println(info.name()));
MinestomWroldAPI.get().worldInfoByName("universe").get();
MinestomWroldAPI.get().worldByName("universe").get().asInstance();