From f7504b99cacf437642e67f835b12252c891c73ea Mon Sep 17 00:00:00 2001 From: extendedclip Date: Wed, 5 Aug 2020 11:45:58 -0400 Subject: [PATCH] Add registerExpansion and unregisterExpansion back --- .../me/clip/placeholderapi/PlaceholderAPI.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java b/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java index e7ba43a..ea29cfe 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java @@ -268,6 +268,20 @@ public final class PlaceholderAPI { // === 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 *