Fixes reforge-able items and displaying color formatting codes
This commit is contained in:
@ -49,17 +49,6 @@ public final class MessageFormatter {
|
||||
sender.sendMessage(ChatColor.DARK_RED + getFormattedMessage(message));
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes color codes to prevent them from being shown
|
||||
*
|
||||
* @param input <p>The input string to escape color codes for</p>
|
||||
* @return <p>The input string with color codes escaped</p>
|
||||
*/
|
||||
public static String escapeColorCodes(String input) {
|
||||
//TODO: Find a working way of escaping color codes
|
||||
return translateColors(input).replace(String.valueOf(ChatColor.COLOR_CHAR), "&&&");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the formatted version of any chat message
|
||||
*
|
||||
|
Reference in New Issue
Block a user