mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Use registerExpansion instead of registerPlaceholderHook in the register method.
This commit is contained in:
parent
1a905f88a9
commit
6825c9afc1
@ -107,7 +107,7 @@ public abstract class PlaceholderExpansion extends PlaceholderHook {
|
|||||||
*/
|
*/
|
||||||
public boolean register() {
|
public boolean register() {
|
||||||
Validate.notNull(getIdentifier(), "Placeholder identifier can not be null!");
|
Validate.notNull(getIdentifier(), "Placeholder identifier can not be null!");
|
||||||
return PlaceholderAPI.registerPlaceholderHook(getIdentifier(), this);
|
return PlaceholderAPI.registerExpansion(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user