private void sendUpdate(UUID uniqueId) {
        if (this.plugin.getBootstrap().isServerStopping()) {
            return;
        }
        
        this.plugin.getBootstrap().getScheduler().sync()
                .execute(() -> this.plugin.getBootstrap().getPlayer(uniqueId).ifPresent(Player::updateCommands));
    }
Calls {@link Player#updateCommands()} when a players permissions change.
bukkit/src/main/java/me/lucko/luckperms/bukkit/listeners/BukkitCommandListUpdater.java