// figure out which command this is
commandName = args[0].substring(1);
// process it
ServerCommand command = getCommand(commandName);
if (command != null) {
command.run(connId, args);
} else {
sendServerChat(connId, "Command not recognized. Type /help for a list of commands.");
}
}