String type = split[0];
String args = event.getMessage().substring(type.length() + 1);
this.controller.getDebugger().debug("Received CUI event from server: " + event.getMessage());
CUIEvent cuievent = new CUIEvent(this.controller, type, args.split("[|]"));
this.controller.getEventManager().callEvent(cuievent);
if (!cuievent.isHandled()) {
cuievent.markInvalid("Invalid message type. Update WorldEditCUI to the latest version.");
}
}