[Solved] How do make it so you can change the color of message texts in your config file?

Discussion in 'Plugin Help/Development/Requests' started by InkzzzMC, Dec 4, 2014.

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

    InkzzzMC

    I've made a plugin where you can do /staff and it shows you a list of staff, I'm wondering how I can make it so you can change the color of the text in the config?
     
  2. Offline

    AdobeGFX

    Code:java
    1. {
    2. player.sendMessage(replaceColor(getConfig().getString(blabla));
    3. }
    4. public String replaceColors(String string) {
    5. return string.replaceAll("(&([a-fk-or0-9]))", "\u00A7$2");
    6. }
     
  3. Offline

    InkzzzMC

    I fixed it a while back, but thanks.
     
Thread Status:
Not open for further replies.

Share This Page