LOGGER.error(text + " (" + user.username + ")");\r
}\r
\r
+ protected void sendHeader(String msg, Object... objects) {\r
+ sendMessage("--->", msg, objects);\r
+ }\r
+\r
protected void sendMessage(String msg, Object... objects) {\r
+ sendMessage(" ", msg, objects);\r
+ }\r
+\r
+ protected void sendMessage(String prefix, String msg, Object... objects) {\r
String text;\r
if (ArrayUtils.isEmpty(objects)) {\r
text = msg;\r
- super.sendMessage(msg);\r
+ super.sendMessage(prefix + msg);\r
} else {\r
text = MessageFormat.format(msg, objects);\r
- super.sendMessage(text);\r
+ super.sendMessage(prefix + text);\r
}\r
LOGGER.info(text + " (" + user.username + ")");\r
}\r
* @param commands\r
* @param scripts\r
*/\r
- protected void runGroovy(Collection<ReceiveCommand> commands, Set<String> scripts) {\r
+ private void runGroovy(Collection<ReceiveCommand> commands, Set<String> scripts) {\r
if (scripts == null || scripts.size() == 0) {\r
// no Groovy scripts to execute\r
return;\r