A Minecraft library for handling placeholders by various plugins/extensions.
repositories {
maven { url "https://repo.jorisg.com/snapshots" }
}
dependencies {
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);