예제 #1
0
  /** Called on WorldEdit command. */
  @Override
  public boolean onCommand(
      CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) {

    // Add the command to the array because the underlying command handling
    // code of WorldEdit expects it
    String[] split = new String[args.length + 1];
    System.arraycopy(args, 0, split, 1, args.length);
    split[0] = "/" + cmd.getName();

    controller.handleCommand(wrapCommandSender(sender), split);

    return true;
  }