Package xyz.geik.farmer.helpers
Class PlaceholderHelper
java.lang.Object
xyz.geik.farmer.helpers.PlaceholderHelper
Parses placeholders if PlaceholderAPI plugin is enabled
- Author:
- WaterArchery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
parsePlaceholders
(org.bukkit.OfflinePlayer player, String s) Parses placeholders in the given string for the specified player.
-
Constructor Details
-
PlaceholderHelper
public PlaceholderHelper()
-
-
Method Details
-
initialize
public static void initialize() -
parsePlaceholders
Parses placeholders in the given string for the specified player.- Parameters:
player
- The player for whom placeholders should be parsed.s
- The string containing placeholders to be parsed.- Returns:
- The string with parsed placeholders if the plugin is enabled, otherwise the original string.
-