public void onEvent(ChatCommandEvent event) {
if (event.getArgs().length == 0) {
return;
}
CommandEventType commEventType = CommandEventType.getTypeFromCommand(event.getArgs()[0]);
if (commEventType != null) {
try {
CommandEventBase newEvent = Reflect.on(commEventType.getEventClass()).create(this.controller, event.getArgs()).get();
newEvent.run();
if (newEvent.isCancelled()) {
event.setCancelled(true);
}