final CommandContext commandContext = getServiceOrNull(CommandContext.class);
if(commandContext != null) {
final CommandService commandService = getServiceOrNull(CommandService.class);
if(commandService != null) {
final Command command = commandContext.getCommand();
commandService.complete(command);
if(command instanceof Command2) {
final Command2 command2 = (Command2) command;
command2.flushActionInteractionEvents();
}