Clears up arund 27ms processing time, believe it or not
Code:
public class Command {
public static void plrCommand(String cmd, Client c) {
String[] illegal = { "example", "example2" };
for (String element : illegal) {
if (cmd.indexOf(element) >= 0) {
c.plrBlackmarks += 1;
c.msgSend("You have a total of "+ c.plrBlackmarks +" infraction(s) on your account.");
c.msgSend("Please refrain from attempting to abuse the server.");
return;
}
}
public static void modCommand(String cmd, Client c) {
// Commands for Moderators
/* if(command.startsWith("example"))
{
code;
} */
}
public static void admCommand(String cmd, Client c) {
// commands for admins
}
}