Gunpowder-MC / GunpowderUtilities

MIT License
3 stars 0 forks source link

Feature Request: Disable commands #10

Open nullpanda opened 3 years ago

nullpanda commented 3 years ago

Hello, I really only need the administrative commands for occasional use and would love the ability to just disable the others. Carpet does this using gamerules, allowing me to set to "true" to allow anyone, "ops" to be op-only, and "false" to disable commands.

I would very much appreciate this ability.

Martmists-GH commented 3 years ago

We're waiting for Fabric Permissions API to be finished so you can use various mods like LuckPerms to disallow people from using them. Until then, there's no solution for this.

supsm commented 3 years ago

For now, you can manually edit the source files in src/main/kotlin/io/github/gunpowder/commands/ and add requires { it.hasPermissionLevel(4) } in front of the executes line. 4 can be set to which level of op you need to use the command.