<@&1469925811288146146> - Opt in to pings by heading over to the id:customize.
Latest updates to PlaceholderAPI for Hytale. Currently sitting at over 200 placeholders in under a week.
1 messages · Page 1 of 1 (latest)
<@&1469925811288146146> - Opt in to pings by heading over to the id:customize.
Latest updates to PlaceholderAPI for Hytale. Currently sitting at over 200 placeholders in under a week.
<@&1469925811288146146> 391 placeholders now, and growing every day!
This message is more for the mod developers out there, there's some important info regarding the player expansion. You may notice some placeholders don't work depending on how you access them, specifically %player_health% (and more I won't list). Basically the issue lies in the Player object that data is retrieved from, which can only be accessed in the corresponding World thread for that player.
If you're having this issue, you need to run replacements in the world thread:
world.execute(() -> sender.sendMessage(PlaceholderAPI.setPlaceholders(player, "%player_health%"));
Might look into adding a config option for the player expansion that forces the logic to run in the world thread - but then we're talking about blocking whatever thread we're currently in which in my head just seems like a huge level of overreach and future problems, but we'll see.
<@&1469925811288146146> We've reached 500+ placeholders now!
We also dropped a new update (v1.0.6) last night which you can download from CurseForge or our Jenkins here
Print more useful information to console when an expansion fails to load
Fixed an issues preventing config comments to work correctly
Added metrics (configurable) to help us better understand usage/demand
Show total number of pages in /papi ecloud list all
Deprecate PlaceholderExpansion#getExpansionConfig, expansions can now use Configurable#getConfig```
If you have a mod and want to add support for PlaceholderAPI, check out [our wiki here](https://wiki.placeholderapi.com/developers/)