private void flushQueuedMessages() {
        if (this.queuedMessages.isEmpty()) {
            return;
        }

        Player p = Iterables.getFirst(Players.all(), null);
        if (p != null) {
            this.queuedMessages.removeIf(ma -> {
                sendToChannel(ma, p);
                return true;
            });
        }
    }
Sends (or queues the sending of) the message encapsulated by the given message agent

@param agent the agent
helper/src/main/java/me/lucko/helper/messaging/bungee/BungeeCordImpl.java