@ReceiveEvent(components = ClientComponent.class, netFilter = RegisterMode.AUTHORITY) public void onCommand(CommandEvent event, EntityRef entity) { List<String> params = event.getParameters(); ConsoleCommand cmd = console.getCommand(event.getCommandName()); if (cmd.getRequiredParameterCount() == params.size() && cmd.isRunOnServer()) { console.execute(event.getCommandName(), event.getParameters(), entity); } }