Placeholders
Bukkit/Paper Fabric
The registry itself is platform-neutral; external placeholder bridges exist for Bukkit and Fabric.
The placeholder module offers a shared registry plus platform bridges for:
- Bukkit PlaceholderAPI
- Fabric PB4 Placeholder API
- Fabric Text Placeholder API
- Fabric MiniPlaceholders
Register Placeholders
java
Global placeholders are available without a namespace:
java
Local placeholders are scoped to an owner key:
java
Resolve And Render
Resolve a single entry directly:
java
Render tokens inside text:
java
Convenience overloads:
java
Resolution Order
For {key} tokens:
- Inline values from the context
- Local placeholders for the
ownerKey - Default namespace (
defaultNamespace:key) - Global placeholders
Namespaced tokens use {namespace:key} or {namespace:key:arg}. For local
arguments in plain {key} form, use the argument separator (default |):
java
Platform Bridges
- Bukkit: the bridge is installed when the Bukkit
Loggeradapter is created or when Bukkit bootstrap wiring creates that logger for you. - Fabric: the bridge is installed by the Fabric logger integration and registers available placeholders with PB4 Placeholder API, Text Placeholder API, and MiniPlaceholders when those mods are present.
Supported Fabric mods:
Registry Introspection
Snapshots of the registry are available for tooling and debugging:
java
See Placeholders Advanced for metadata, listeners, and debug hooks.