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