Skip to content

A configurable script which allows packdevs to impose certain limitations on players running commands. Made by Tazz, packaged for KJSPKG.

License

Notifications You must be signed in to change notification settings

gcatkjspkgs/command-restrictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Command restrictor

kjspkg-available

Usage

// Place this in any server script
const commandMap = {
    "kubejs": { // This will restrict the /kubejs command to
        "permissionLevel": 2, // Only be usable by players with perm levels higher than 2 (op)
        "stage": "stage_name", // Only runnable if the player has the stage called "stage_name"
        "dimension": "minecraft:overworld" // Only work when ran in the overworld
    }
}

About

A configurable script which allows packdevs to impose certain limitations on players running commands. Made by Tazz, packaged for KJSPKG.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published