
Originally Posted by
Deidara
ok so with the yell comand i got from jonathan i would like the co-owner and owner to have dif colors when they type like owner=RED and co-owner=BLUE i will need the stuff added in this code tht i got from jonathan....
if (cmd[0].equals("yell")) {
playerCommand = playerCommand.toLowerCase();
if (p.muted == 0) {
String message = playerCommand.substring(5);
String titles = "";
if (p.rights == 2) {
titles = "<img=0><col=ff0000>[Admin] ";
}
if (p.username.equals("co-owner name here")) {
titles = "<img=1><col=00ff00>[Co-owner] ";
}
if (p.username.equals("yourname here")) {
titles = "<img=1><col=C12DBF>[Host/Coder/Owner] ";
}
for(Player pl : Engine.players)
p.frames.sendMessage(pl, titles + "" + p.username + ": " +message);
} else {
p.frames.sendMessage(p, "You can't yell because you are muted!");
}
}
btw how would i add [mod] into tht..... like this maybe???
if (p.rights == 1) {
<img=0><col=ff0001>[Mod] ";
here
Code:
if (p.rights == 1) {
titles = "<img=0><col=ff0000>[Moderator] ";
}