Class TextFormatter

java.lang.Object
com.ordwen.odailyquests.tools.TextFormatter

public class TextFormatter extends Object
  • Method Details

    • setPlaceholderAPIEnabled

      public static void setPlaceholderAPIEnabled(boolean enabled)
      Enable or disable the use of PlaceholderAPI.
      Parameters:
      enabled - true to enable, false to disable.
    • isPlaceholderAPIEnabled

      public static boolean isPlaceholderAPIEnabled()
      Check if PlaceholderAPI is enabled.
      Returns:
      true if enabled, false otherwise.
    • format

      public static String format(String message)
      Format a message, replacing color codes.
      Parameters:
      message - message to format
    • format

      public static String format(org.bukkit.entity.Player player, String message)
      Format a message for a player, replacing placeholders and color codes.
      Parameters:
      player - player
      message - message to format
      Returns:
      formatted message