Package me.yleoft.zAPI.handlers
Class PlaceholderAPIHandler
java.lang.Object
me.yleoft.zAPI.handlers.PlaceholderAPIHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyHookPlaceholders(@Nullable org.bukkit.OfflinePlayer player, @NotNull String params) Parses the placeholders for a specific player.applyPlaceholders(@Nullable org.bukkit.OfflinePlayer player, @NotNull String text) Apply placeholders to a string for a specific player.
-
Constructor Details
-
PlaceholderAPIHandler
public PlaceholderAPIHandler()
-
-
Method Details
-
applyHookPlaceholders
public String applyHookPlaceholders(@Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String params) Parses the placeholders for a specific player.- Parameters:
player- The player to apply placeholders forparams- The string to apply placeholders to- Returns:
- The parsed placeholder
-
applyPlaceholders
public String applyPlaceholders(@Nullable @Nullable org.bukkit.OfflinePlayer player, @NotNull @NotNull String text) Apply placeholders to a string for a specific player.- Parameters:
player- The player to apply placeholders fortext- The string to apply placeholders to- Returns:
- The string with placeholders applied
-