A Minecraft library for handling placeholders by various plugins/extensions.
- Minestom
- Spigot / Paper
Get the latest release and place it in your server.
repositories {
maven { url "https://repo.jorisg.com/snapshots" }
}
dependencies {
// minestom
compileOnly 'com.guflimc.brick.placeholders:minestom-api:1.0-SNAPSHOT'
// spigot
compileOnly 'com.guflimc.brick.placeholders:spigot-api:1.0-SNAPSHOT'
}
You can find the javadocs for all platforms here
SpigotPlaceholderAPI.get().registerReplacer("level", (player) -> {
return Component.text(player.getLevel());
});
Component result = SpigotPlaceholderAPI.get().replace(player, text);