What revision? And probably seem like you didn't close the brackets.
|
I added this.
if (playerCommand.startsWith("yell")) {
String m = playerCommand.substring(4).toLowerCase();
if (Connection.isMuted(c)) {
c.sendMessage("You cannot yell you are muted.");
} else if (c.isDonator != 1) {
c.sendMessage("You do not have access to the yell channel.");
} else {
c.getPA().sendYell(Misc.optimizeText(m));
}
}
I will yell and it will work out fine.
If someone else does yell it will say my name with the text they typed.
I did add correct brackets, it just isn't working for some reason.
I think it has something to do with this bit of code. String m = playerCommand.substring(4).toLowerCase();
Or, maybe this. c.getPA().sendYell(Misc.optimizeText(m));
This is the error, Screenshot by Lightshot
I yell something, and on the players side of view it will say they yell it.
Example, Owner: Hello. Player: Hello.
It could also be, Client client = (Client) PlayerHandler.players[i]; not to sure though.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |