Examples of CommandEventType


Examples of rabbit.data.internal.xml.schema.events.CommandEventType

  public CommandEventConverter() {
  }

  @Override
  protected CommandEventType doConvert(CommandEvent element) {
    CommandEventType type = new CommandEventType();
    type.setCommandId(element.getExecutionEvent().getCommand().getId());
    type.setCount(1);
    return type;
  }
View Full Code Here

Examples of rabbit.data.internal.xml.schema.events.CommandEventType

  public CommandEventTypeMerger() {
  }

  @Override
  protected CommandEventType doMerge(CommandEventType t1, CommandEventType t2) {
    CommandEventType result = new CommandEventType();
    result.setCommandId(t1.getCommandId());
    result.setCount(t1.getCount() + t2.getCount());
    return result;
  }
View Full Code Here

Examples of wecui.event.command.CommandEventType

    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);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.