OK, i dont know if i can post these kind of things here, but idk where then.
I am just wondering how you have multiple (ChatColor.COLOR) codes in one line, aka change the colors from one to another.
This is the code i came up with, but it wont work so i hope someone know the answer
Link: http://pastebin.com/6JBjvXzk
Thanks in advance!
I am just wondering how you have multiple (ChatColor.COLOR) codes in one line, aka change the colors from one to another.
This is the code i came up with, but it wont work so i hope someone know the answer
Link: http://pastebin.com/6JBjvXzk
Thanks in advance!
4
Do like
It should work just fine.
Just simply put a + between words and the ChatColor, rather than )( that will try to close (and open) the parameter.
p.sendMessage(ChatColor.YELLOW + "You equipped " + ChatColor.INDIGO + "Basic! " + ChatColor.GREY + "Its balanced, but yet strong");It should work just fine.
Just simply put a + between words and the ChatColor, rather than )( that will try to close (and open) the parameter.
I just figured it out, but thanks anyways
Alternatively, have a colorization method, then you can apply it whenever you want colors and just use the ampersand for color-code adding.
public String __(String encoded) {
return ChatColor.translateAlternateColorCodes('&', encoded);
}
//...
Player.sendMessage(__("This is in &ccolor!"));Anyone?
