mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
commit
fc31babff3
@ -590,6 +590,8 @@ public class FUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String colorize(String string)
|
public static String colorize(String string)
|
||||||
|
{
|
||||||
|
if (string != null)
|
||||||
{
|
{
|
||||||
Matcher matcher = Pattern.compile("&#[a-f0-9A-F]{6}").matcher(string);
|
Matcher matcher = Pattern.compile("&#[a-f0-9A-F]{6}").matcher(string);
|
||||||
while (matcher.find())
|
while (matcher.find())
|
||||||
@ -599,6 +601,7 @@ public class FUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
string = ChatColor.translateAlternateColorCodes('&', string);
|
string = ChatColor.translateAlternateColorCodes('&', string);
|
||||||
|
}
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user