Use registerExpansion instead of registerPlaceholderHook in the register method.

This commit is contained in:
extendedclip 2018-04-20 22:15:13 -04:00
parent 1a905f88a9
commit 6825c9afc1

View File

@ -107,7 +107,7 @@ public abstract class PlaceholderExpansion extends PlaceholderHook {
*/
public boolean register() {
Validate.notNull(getIdentifier(), "Placeholder identifier can not be null!");
return PlaceholderAPI.registerPlaceholderHook(getIdentifier(), this);
return PlaceholderAPI.registerExpansion(this);
}
/**