Add registerExpansion and unregisterExpansion back

This commit is contained in:
extendedclip 2020-08-05 11:45:58 -04:00
parent 02669e2435
commit f7504b99ca

View File

@ -268,6 +268,20 @@ public final class PlaceholderAPI {
// === Deprecated API === // === Deprecated API ===
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2.11.0")
public static boolean registerExpansion(PlaceholderExpansion expansion)
{
return expansion.register();
}
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2.11.0")
public static boolean unregisterExpansion(PlaceholderExpansion expansion)
{
return expansion.unregister();
}
/** /**
* Get map of registered placeholders * Get map of registered placeholders
* *