Replacing color codes &,§

Discussion in 'Plugin Development' started by Jamscott, Jun 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    whitehooder

    No particular reason. The only thing I knew about the color codes in Minecraft three years ago was what I found on the wikis. I simply coded my own way of replacing &'s with §'s if the following character was a valid formatting code. I had no intention to reinvent a wheel, and I didn't even know the API method existed when I first started using my implementation ;) It was simply to get my plugin working.

    Also, about what you said with "won't be future-proofed", I said something like it previously.
    Anyway, I'm with you folks. Maybe I'll use the ChatColor method in my future plugins ;)
     
  2. or just
    Code:
    ChatColor.translateAlternateColorCodes('&', string);
    
    xD
     
Thread Status:
Not open for further replies.

Share This Page