@Override
    public Stream<Sender> getOnlineSenders() {
        return Stream.concat(
                Stream.of(getConsoleSender()),
                this.bootstrap.getServer().map(server -> server.onlinePlayers().stream().map(s -> this.senderFactory.wrap(s))).orElseGet(Stream::empty)
        );
    }
LuckPerms implementation for the Sponge API.
sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java