PlaceholderAPI icon

PlaceholderAPI -----

A resource that allows information from your favorite plugins be shown practically anywhere!



2.9.0 The OfflinePlayer update
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:
Code (Java):
@Override
public String onPlaceholderRequest (Player p, String params )
method to provide values for your placeholders.

If you would like to support OfflinePlayer with your placeholders, you simply change the method above to:
Code (Java):
@Override
public String onRequest (OfflinePlayer p, String params )
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.



If you find any bugs or have any issues, please submit them on github:
https://github.com/PlaceholderAPI/PlaceholderAPI/issues

Have a good day!




----------, Jun 13, 2018
Resource Information
Author:
----------
Total Downloads: 1,633,039
First Release: Apr 20, 2015
Last Update: May 21, 2024
Category: ---------------
All-Time Rating:
497 ratings
Find more info at api.extendedclip.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings