Package wbs.utils.util.pluginhooks
Class PlaceholderAPIWrapper
java.lang.Object
wbs.utils.util.pluginhooks.PlaceholderAPIWrapper
Simple wrapper for PlaceholderAPI that allows plugins to safely
fill out placeholders without checking if that plugin is enabled
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisActive()static booleanregisterSimplePlaceholder(org.bukkit.plugin.java.JavaPlugin plugin, String author, BiFunction<org.bukkit.OfflinePlayer, String, String> function) static StringsetPlaceholders(org.bukkit.entity.Player player, String text)
-
Method Details
-
isActive
public static boolean isActive() -
setPlaceholders
-
registerSimplePlaceholder
public static boolean registerSimplePlaceholder(org.bukkit.plugin.java.JavaPlugin plugin, String author, BiFunction<org.bukkit.OfflinePlayer, String, String> function)
-