2.9.1 Fixes issue where plugins requesting placeholders fail to hook with PlacrholderAPI due to missing methods.
2.9.0
We now support parsing placeholders for OfflinePlayer What does this mean for you?
For servers: Once placeholder expansions/hooks/plugins start updating to support the new methods introduced in this update, you will essentially be able to show placeholder values for players that aren't online if the placeholder supports it!
For developers: While this change does not break compatibility with existing placeholder expansions, hooks, or any plugin that already add placeholders (or uses the API to parse placeholders)...
It is recommended that you update your expansions / hooks to use the new method introduced if you want to provide/parse placeholders for players that aren't online.
I know that this feature might not be necessary for some hooks.... In that case, you can continue to use the current:
If you choose to support offlineplayer in your placeholders, it is your responsibility to ensure the player is online if you have placeholders that require the player be online.
Oh. by the way.....
If your plugin handles messages where placeholders are parsed through PlaceholderAPI, the:
Code (Java):
PlaceholderAPI.
setPlaceholders(player, params
);
method now supports passing an OfflinePlayer to it.