Hello everyone, I am writing my plugin for the chat implementation, how can I implement the use of the symbol & + color code
At the moment I have a line
However, the plugin does not work in operation.
Note: I want to make the player when he writes a message, for example &c Hello and the color symbols disappear and the message is red.
At the moment I have a line
if(p.hasPermission("color.chat")){
e.getMessage().replaceAll("&", "§");
}
However, the plugin does not work in operation.
Note: I want to make the player when he writes a message, for example &c Hello and the color symbols disappear and the message is red.