Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 648 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 648 Bytes

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
    }
}