} ); command.execute( sender, args ); } else if ( commandLine.contains( " " ) && command instanceof TabExecutor )
@Override public void execute(CommandSender sender, String[] args) { if (args.length > 0 && subCommands.containsKey(args[0])) { Command command = subCommands.get(args[0]); if (command.getPermission() == null || checkPermission(sender, command)) { command.execute(sender, Arrays.copyOfRange(args, 1, args.length)); } else { sender.sendMessage(TextComponent.fromLegacyText(ProxyServer.getInstance().getTranslation("no_permission"))); } } else if (defaultAction != null) { defaultAction.accept(sender); } else { sender.sendMessage(ChatUtil.parseBBCode("&cWrong usage!")); } }
} ); command.execute( sender, args ); } else if ( commandLine.contains( " " ) && command instanceof TabExecutor )