Class PlaceholderAPIHook
java.lang.Object
dev.esophose.playerparticles.hook.PlaceholderAPIHook
public final class PlaceholderAPIHook
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PlaceholderAPIHook()
-
Method Summary
Modifier and Type Method Description static java.lang.String
applyPlaceholders(org.bukkit.entity.Player player, java.lang.String text)
Applies placeholders from PlaceholderAPI to stringsstatic boolean
enabled()
-
Constructor Details
-
PlaceholderAPIHook
public PlaceholderAPIHook()
-
-
Method Details
-
enabled
public static boolean enabled()- Returns:
- true if PlaceholderAPI is enabled, otherwise false
-
applyPlaceholders
public static java.lang.String applyPlaceholders(org.bukkit.entity.Player player, java.lang.String text)Applies placeholders from PlaceholderAPI to strings- Parameters:
player
- The Player to apply placeholders withtext
- The text to replace placeholders- Returns:
- A string with replaced placeholders
-