Code:
}
if (command.startsWith("yell") && (command.length() > 5)) {
if (!muted) {
String text = command.substring(5);
String[] bad = { "chalreq", "duelreq", "tradereq" };
for (String element : bad) {
if (text.indexOf(element) >= 0) {
return;
}
}
lastMessage[0] = lastMessage[1];
lastMessage[1] = lastMessage[2];
lastMessage[2] = Character.toUpperCase(text.charAt(0))
+ text.substring(1);
yell(playerName + ": "
+ Character.toUpperCase(text.charAt(0))
+ text.substring(1));
} else
sendMessage(playerName + ": " + command.substring(5));
}
hey when i try to add an level requirments it does not work.