Skip to main content

Minestom Development

Starting with MiniPlaceholders 3.2.0, support for Minestom has been added.

Minestom is a library that allows you to build your own Minecraft server from scratch, without relying on Mojang's code.

To use MiniPlaceholders with Minestom, you must add the dependency to your buildscript

  repositories {
mavenCentral()
}

dependencies {
implementation("io.github.miniplaceholders:miniplaceholders-minestom:3.2.0")
}

Once the dependency has been imported, simply use it after starting the server.

MinestomMiniPlaceholders.initialize(
Path.of("miniplaceholders"),
(source, permission) -> TriState.TRUE
);

This will register the corresponding MiniPlaceholders commands with the Permission Checker you configure, and create the expansions folder where you can place the expansions you want.

You can see a real-world example of its use here.