{4} helper methods
@Override
public final void onStart() {
log("This will be printed to the logger when the script starts");
}@Override
public final void onExit() {
log("This will be printed to the logger when the script exits");
}@Override
public final void onMessage(final Message message) {
log("A message arrived in the chatbox: " + message.getMessage());
}@Override
public void onPaint(final Graphics2D g) {
g.drawString("Some text", 10, 10);
}Last updated