Package com.ordwen.odailyquests.tools
Class TextFormatter
java.lang.Object
com.ordwen.odailyquests.tools.TextFormatter
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Format a message, replacing color codes.static String
Format a message for a player, replacing placeholders and color codes.static boolean
Check if PlaceholderAPI is enabled.static void
setPlaceholderAPIEnabled
(boolean enabled) Enable or disable the use of PlaceholderAPI.
-
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
Format a message, replacing color codes.- Parameters:
message
- message to format
-
format
Format a message for a player, replacing placeholders and color codes.- Parameters:
player
- playermessage
- message to format- Returns:
- formatted message
-