1xiix1 Donator
Number of posts : 87 Registration date : 2008-08-20
| Subject: U can shout when ur muted Fri Aug 22, 2008 3:16 pm | |
| i can know i'm muted, heres the fix: - Code:
-
if (command.startsWith("shout") && (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); if (lastMessage[0].equals(lastMessage[1]) && lastMessage[1].equals(lastMessage[2])) sendMessage(playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); else yell(playerName + ": " + Character.toUpperCase(text.charAt(0)) + text.substring(1)); } else sendMessage(playerName + ": " + command.substring(5)); } | |
|