Package org.yuemi.libs.api.placeholder
Class PlaceholderHelper
java.lang.Object
org.yuemi.libs.api.placeholder.PlaceholderHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(@NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull String identifier, @NotNull BiFunction<org.bukkit.OfflinePlayer, String, String> handler) Registers a PlaceholderAPI expansion dynamically.
-
Method Details
-
register
public static void register(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull String identifier, @NotNull @NotNull BiFunction<org.bukkit.OfflinePlayer, String, String> handler) Registers a PlaceholderAPI expansion dynamically.- Parameters:
plugin- the registering pluginidentifier- the placeholder identifier (e.g. "magicauction")handler- the placeholder handler function mapping player and params to a string
-