Package dev.piglin.piglinworldapi.util
Class StringUtils
java.lang.Object
dev.piglin.piglinworldapi.util.StringUtils
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
replace
public static String replace(String target, @Nullable @Nullable HashMap<String,String> replacements, @Nullable @Nullable org.bukkit.OfflinePlayer player)Replaces the string with the specified replacements, PlaceholderAPI (if present) and colors including RGB and RGB gradients- Parameters:
target- The stringreplacements- The replacements. {key} will be replaced with valueplayer- The player to set placeholder against (if using PlaceholderAPI)- Returns:
- String with all placeholders set and translated colors (including RGB)
-