Class PlaceholderHelper

java.lang.Object
xyz.geik.farmer.helpers.PlaceholderHelper

public class PlaceholderHelper extends Object
Parses placeholders if PlaceholderAPI plugin is enabled
Author:
WaterArchery
  • Constructor Details

    • PlaceholderHelper

      public PlaceholderHelper()
  • Method Details

    • initialize

      public static void initialize()
    • parsePlaceholders

      public static String parsePlaceholders(org.bukkit.OfflinePlayer player, String s)
      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.