Back to mods
Permission Validator project artwork

Modrinth · Minecraft mod

Permission Validator

A drop-in solution for integrating permission nodes to your multi-platform mod.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Permission Validator release matches 26.1 NeoForge?

Updated 23 days ago
Best match for your filters 1.0.1+neoforge-26.1
Game version 26.1
Loader NeoForge

Permission Validator 1.0.1+neoforge-26.1 targets 26.1 with NeoForge. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Permission Validator required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Permission Validator 1.0.1+neoforge-26.1 need?

1.0.1+neoforge-26.1 on 26.1 NeoForge. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Kotlin for Forge first. We found matching files for this game-version and loader setup.

Kotlin for Forge Needed by Permission Validator 1.0.1+neoforge-26.1
required
Matching file found Matched file: 6.5.0

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Permission Validator without breaking your instance.

Built for Permission Validator 1.0.1+neoforge-26.1 on 26.1 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.1+neoforge-26.1. It targets 26.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Kotlin for Forge first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.1+neoforge-26.1. It opens that exact file at the source.

About this project

What does Permission Validator add?

Permission Validator

A drop-in solution for integrating permission nodes to your multi-loader mod.

It works by providing a single, unified API for defining and checking permissions, handling essentially all the heavy lifting for both
Fabric and NeoForge. On Fabric, it also determines if the fabric-permissions-api mod is present, then uses it if so.

You'll most commonly be using this for permission checks in commands, but it can be used for literally any
kind of "permission" you want to check for, such as whether a player can use a certain item or access a certain area.

For Users: This is a library mod, you don't need to install it unless a mod requires it.
If you're a developer, keep on reading!

Usage Sample

1. Add Dependency

You should just be able to Jar in Jar this into your mod (it's only 16~Kb!).

However, if you really want to you can add it as a dependency in your fabric.mod.json or neoforge.mods.toml file
and require users to install it separately.

repositories {
    maven("https://maven.ziroau.com")
}

// For Fabric & Architectury Loom
dependencies {
    modApi "com.ziroau:permissionvalidator:${permissionvalidator_version}:fabric-mc${minecraft_version}"
    include "com.ziroau:permissionvalidator:${permissionvalidator_version}:fabric-mc${minecraft_version}"
}

// For NeoForge
dependencies {
    jarJar(implementation("com.ziroau:permissionvalidator:${permissionvalidator_version}:neoforge-mc${minecraft_version}")) {
        version {
            strictly "[${permissionvalidator_version},)"
            prefer "${permissionvalidator_version}"
        }
    }
}

// Multiloader 'Common' Project
dependencies {
    modCompileOnlyApi "com.ziroau:permissionvalidator:${permissionvalidator_version}:fabric-mc${minecraft_version}"
}

2. Define & Initialize Permissions

object ModPermissions {
    val ROOT = PermissionManager.create(
        "mod",
        PermissionLevel.CHEATS_AND_COMMAND_BLOCKS
    )
    val RELOAD = PermissionManager.create(
        "mod.reload",
        PermissionLevel.CHEATS_AND_COMMAND_BLOCKS
    )

    // Call just before command registration
    fun initialize() {
        PermissionManager.initialize(listOf(ROOT, RELOAD))
    }
}

3. Check Permissions

Within your Brigadier structure, you can use the .requires overload:

import com.ziroau.permissionvalidator.api.PermissionManager.requires

object ModComands {
    fun register(dispatcher: CommandDispatcher<ServerCommandSource>) {
        ModPermissions.initialize()

        val root = Commands.literal("commandroot")
            .requires(ModPermissions.ROOT)
            .executes { ctx -> modInfo(ctx.source) }
            .then(
                //** /commandroot reload */
                Commands.literal("reload")
                    .requires(ModPermissions.RELOAD)
                    .executes { ctx -> reload(ctx.source) }
            )
    }
}

Or in some other random context:

fun someRandomFunction(player: ServerPlayerEntity) {
    if (PermissionManager.hasPermission(player, ModPermissions.RELOAD)) {
        // do something
    } else {
        // did not have permission to do something :(
    }
}

Project description from Modrinth.

Pick your setup

Permission Validator by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

32 available setups

Showing the newest 12 of 16 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Permission Validator versions and loaders

2 of 64 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.