If you are using delta
Code:
if (command.startsWith("yell") && playerRights > 0 && playerRights < 4) {
String[] playerTitle = { "", "[Mod]", "[Admin]", "[Owner]" };
for (Player p : handler.players) {
client temp = (client) p;
if ((temp != null) && !temp.disconnected && p.isActive)
temp.sM(playerTitle[playerRights]+command.substring(5));
}
}
Otherwise
Code:
if (command.startsWith("yell") && playerRights > 0 && playerRights < 4) {
String[] playerTitle = { "", "[Mod]", "[Admin]", "[Owner]" };
for (Player p : handler.players) {
client temp = (client) p;
if ((temp != null) && !temp.disconnected && p.isActive)
temp.sendMessage(playerTitle[playerRights]+command.substring(5));
}
}