Custom Placeholders
Adding build support
Add the follow to your build.gradle:
The repository allows you to add the dependency directly from jitpack. Ensure to replace the version tag (2.0.0) with the latest release from this repository.
Custom Placeholders
Upon adding the dependency you will then be able to extend the AbstractPlaceholderManager
interface like so:
Once this interface is registered it will add the registered extension as a placeholder under this manager.
For further examples of how to do this look through the examples in this repository.
Registering Placeholders
In order for your Placeholders to be registered place your jar file inside the mods/ForgePlaceholderAPI/
directory on your server. Alternatively, you can register the placeholder directly using the method PlaceholderFactory#register
Last updated