} else {
try {
String result = cmd.execute(params, callingClient);
if (result != null && !result.isEmpty()) {
if (callingClient.exists()) {
callingClient.send(new ConsoleMessageEvent(result));
} else {
addMessage(result);
}
}
return true;
} catch (IllegalArgumentException e) {
String msgText = e.getLocalizedMessage();
if (msgText != null && !msgText.isEmpty()) {
if (callingClient.exists()) {
callingClient.send(new ConsoleMessageEvent(e.getLocalizedMessage()));
} else {
addErrorMessage(e.getLocalizedMessage());
}
}
return false;