Examples of PreCommandEvent


Examples of org.spout.api.event.server.PreCommandEvent

    }
  }

  @Override
  public void processCommand(String command, String... args) {
    PreCommandEvent event = VanillaPlugin.getInstance().getEngine().getEventManager().callEvent(new PreCommandEvent(this, command, args));
    if (event.isCancelled()) {
      return;
    }
    command = event.getCommand();
    CommandArguments arguments = event.getArguments();

    if (Spout.debugMode()) {
      Spout.getLogger().info("Executing: " + command + " " + arguments);
    }
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.