-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholder support #27
Comments
No, there isn't. @Poslovitch Is there a way for the add-on to register placeholders? |
Yes, but that'll need some boilerplate code. But that's possible . |
More and more users are asking for this. BentoBox.getInstance().getPlaceholdersManager().registerPlaceholder(Addon, String, PlaceholderReplacer); See the Javadoc for reference. |
@Poslovitch Thanks. I'll look into this now. |
Okay, added in commit 8eaca60 |
UPDATED with latest commit: Added these placeholders (BSkyBlock examples): Level Placeholder Top Ten Placeholders If the top ten is less than 10 players then the placeholder will return an empty string. To get the the values for other game modes, for example AcidIsland or CaveBlock, use the same format but with the Addon name in lower case, e.g. %Level_acidisland-island-level% Tested using Placeholder API's parse command and they work. e.g.
|
commit 97fb434 |
This issue relates to this discussion: BentoBoxWorld/BentoBox#322 |
When upgrading, must delete config.yml to get new version. Also changes placeholder names to be prefixed with GameModeAddon name in lower case. e.g, %bskyblock-island-level% #39 BentoBoxWorld/BentoBox#322 #27
Note placeholder names now have the game mode in them so you can get them for any game mode. |
Is there a placeholder for chat formatting (EssentialsX) for this level addon?
The text was updated successfully, but these errors were encountered: