Return any Object with the new onPlaceholderRequest method.

This commit is contained in:
extendedclip
2018-05-31 15:14:25 -04:00
parent a50212e395
commit 25758ee653
2 changed files with 311 additions and 278 deletions

View File

@@ -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);
}