From 7ea2bd94a7f1e34a5b85a3854f7ff0de70cc85e3 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sat, 21 Jul 2018 22:00:33 -0400 Subject: [PATCH] Do not deprecate legacy setPlaceholder methods for now --- src/main/java/me/clip/placeholderapi/PlaceholderAPI.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java b/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java index dcf1346..adac06d 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderAPI.java @@ -46,8 +46,7 @@ public class PlaceholderAPI { private static final Pattern PLACEHOLDER_PATTERN = Pattern.compile("[%]([^%]+)[%]"); private static final Pattern BRACKET_PLACEHOLDER_PATTERN = Pattern.compile("[{]([^{}]+)[}]"); - private static final Pattern RELATIONAL_PLACEHOLDER_PATTERN = Pattern - .compile("[%](rel_)([^%]+)[%]"); + private static final Pattern RELATIONAL_PLACEHOLDER_PATTERN = Pattern.compile("[%](rel_)([^%]+)[%]"); private static final Map placeholders = new HashMap<>(); private PlaceholderAPI() { @@ -374,22 +373,18 @@ public class PlaceholderAPI { return plugin != null && unregisterPlaceholderHook(plugin.getName()); } - @Deprecated public static String setPlaceholders(Player p, String text) { return setPlaceholders((OfflinePlayer) p, text, PLACEHOLDER_PATTERN); } - @Deprecated public static List setPlaceholders(Player p, List text) { return setPlaceholders((OfflinePlayer) p, text, PLACEHOLDER_PATTERN); } - @Deprecated public static String setBracketPlaceholders(Player p, String text) { return setPlaceholders((OfflinePlayer) p, text, BRACKET_PLACEHOLDER_PATTERN); } - @Deprecated public static List setBracketPlaceholders(Player p, List text) { return setPlaceholders((OfflinePlayer) p, text, BRACKET_PLACEHOLDER_PATTERN); }