add @bla@ or @blu@ someplace
|
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.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
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |