Closed guikaua12 closed 6 months ago
Is it possible to do something like this?
api.registerIndividualPlaceholder("joust_rank", 20, (player, placeholder) -> { final JoustUser user = userCache.get(player.getName()); if (user == null) return ""; return NumberUtils.format(user.getLeaderboardPosition().getPosition()); });
Way to register custom placeholders
It would also be possible by doing '...'
Make a placeholder for PlaceholderAPI. The benefit of that method is that other plugins supporting PlaceholderAPI can use it too.
PlaceholderAPI alredy has a way to create custom place holder ¯_(ツ)_/¯
Just making sure
Problem
Is it possible to do something like this?
Feature
Way to register custom placeholders
Alternatives
It would also be possible by doing '...'