mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-01-17 05:48:49 +01:00
Return any Object with the new onPlaceholderRequest method.
This commit is contained in:
@@ -31,7 +31,7 @@ public abstract class PlaceholderHook {
|
||||
* @param params String passed to the hook to determine what value to return
|
||||
* @return value for the requested player and params
|
||||
*/
|
||||
public String onPlaceholderRequest(OfflinePlayer p, String params) {
|
||||
public Object onPlaceholderRequest(OfflinePlayer p, String params) {
|
||||
if (p != null && p.isOnline()) {
|
||||
return onPlaceholderRequest((Player) p, params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user