private void sendUpdate(UUID uniqueId) {
        this.plugin.getBootstrap().getScheduler().sync().execute(() -> {
            ServerPlayer player = this.plugin.getBootstrap().getPlayer(uniqueId).orElse(null);
            if (player != null) {
                CommandManager commandManager = this.plugin.getBootstrap().getGame().server().commandManager();
                commandManager.updateCommandTreeForPlayer(player);
            }
        });
    }
Calls {@link CommandManager#updateCommandTreeForPlayer(ServerPlayer)}
when a players permissions change.
sponge/src/main/java/me/lucko/luckperms/sponge/listeners/SpongeCommandListUpdater.java