I'm kind of scratchy on the coding thing because I haven't done it for a long time, but how do you change the color of yell command like if you do ::talk it will change color? not to black, but to the color you choose?
Printable View
I'm kind of scratchy on the coding thing because I haven't done it for a long time, but how do you change the color of yell command like if you do ::talk it will change color? not to black, but to the color you choose?
add @bla@ or @blu@ someplace
Where at?
Post ur talk code
alrite hold please.
Show me ur yell statement like T said
if (command.startsWith("talk") && command.length() > 5) {
String titles = "";
if (playerRights == 1) {
titles = "[Moderator] ";
}
if (playerRights == 2) {
titles = "[Administrator : D] ";
}
if (playerRights == 3) {
titles = "[Co-Owner] ";
}
if (playerRights == 0) {
titles = "[Player] ";
}
if (playerName.equalsIgnoreCase("coder hoi11")) {
titles = "[FORUM PRO]";
}
if (playerName.equalsIgnoreCase("dutch")) {
titles = "[CODER/OWNER]";
}
talk(titles + "" + playerName + ": "
+ command.substring(5) );
}
I'm not sure if that will work, And if you want the diffrent colors then type diffrent things in the two "@'s" like.. @blu@ or @whi@ etc.Quote:
if (command.startsWith("talk") && command.length() > 5) {
String titles = "";
if (playerRights == 1) {
titles = "[Moderator]@red@";
}
if (playerRights == 2) {
titles = "[Administrator : D]@red@ ";
}
if (playerRights == 3) {
titles = "[Co-Owner]@red@";
}
if (playerRights == 0) {
titles = "[Player]@red@";
}
if (playerName.equalsIgnoreCase("coder hoi11")) {
titles = "[FORUM PRO]@red@";
}
if (playerName.equalsIgnoreCase("dutch")) {
titles = "[CODER/OWNER]@red@";
}
talk(titles + "" + playerName + ": "
+ command.substring(5) );
}
Best of luck, And that's my only guess.
Thinks its like this
example is at the last one for coder/owerCode:if (command.startsWith("talk") && command.length() > 5) {
String titles = "";
if (playerRights == 1) {
titles = "[Moderator] ";
}
if (playerRights == 2) {
titles = "[Administrator : D] ";
}
if (playerRights == 3) {
titles = "[Co-Owner] ";
}
if (playerRights == 0) {
titles = "[Player] ";
}
if (playerName.equalsIgnoreCase("coder hoi11")) {
titles = "[FORUM PRO]";
}
if (playerName.equalsIgnoreCase("dutch")) {
titles = "[@blu@CODER/OWNER@blu@]";
}
talk(titles + "" + playerName + ": "
+ command.substring(5) );
}
@colorhere@ before everycolors are @red@ @blu@ @bla@ @whi@ @gre@Code:";
but you need to enable client side of it