private void onContextUpdate(ContextUpdateEvent e) {
        e.getSubject(Player.class).ifPresent(p -> refreshAutoOp(p, true));
    }
Implements the LuckPerms auto op feature.
bukkit/src/main/java/me/lucko/luckperms/bukkit/listeners/BukkitAutoOpListener.java