PlayerAssistant.java
Code:
public void sendYell(String message) {
for (int i = 0; i < PlayerHandler.players.length; i++) {
if (PlayerHandler.players[i] == null)
continue;
Client client = (Client) PlayerHandler.players[i];
client.getPA().sendClan(client.playerName, message, "yell", client.playerRights);
}
}
Commands.java
Code:
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));
}
}
Credits too Roboyto