Solved Message not getting changed in AyncPlayerChatEvent

Discussion in 'Spigot Plugin Development' started by Redrield, May 12, 2016.

  1. So I'm remaking one of my first plugins to use MySQL, it was a plugin to set different chat colours and formatters for players. The problem that I'm running into is that all the code is being run, all the debug statements I've placed are being triggered as they should be, but they're not changing the message. Here's my current code:
  2. ChatColor values are to remain behind a cached string, or message output. You are currently placing the ChatColor value after the message. This would not result in the message not being colored, but instead, anything after it.

    Code (Text):

    ChatColor.GREEN + "Go!";
  3. Consider using a string builder instead as well.
  4. No need, I asked in the IRC and they told me to use the ChatComponent api, it's working now. Thanks though!