/BrickWorlds

A Minecraft server extension to manage worlds.

Primary LanguageJavaMIT LicenseMIT

BrickWorlds

An extension for Minestom to manage worlds that can be saved to the disk.

Install

Get the release and place it in the extension folder of your minestom server.

Dependencies

Worlds are stored in the worlds directory at the root of your server.

Commands

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

Config

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
}

API

Gradle

repositories {
    maven { url "https://repo.jorisg.com/snapshots" }
}

dependencies {
    implementation 'com.guflimc.brick.worlds:minestom-api:+'
}

Javadocs

Check javadocs here.

Examples

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();