onEnd

public final ListenerCommand onEnd(Consumer<Boolean> action)

Returns a ListenerCommand that runs the specified action when this command is ended.