@Override
    public TristateResult hasPermission(String permission) {
        Permission defPerm = this.plugin.getPermissionMap().get(permission);
        if (defPerm == null) {
            return TristateResult.UNDEFINED;
        }
        return RESULT_FACTORY.result(Tristate.of(defPerm.getDefault().getValue(this.isOp)));
    }
Permission Processor for Bukkits "default" permission system.
bukkit/src/main/java/me/lucko/luckperms/bukkit/calculator/PermissionMapProcessor.java