Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Disable commands #10

Open
nullpanda opened this issue Jan 4, 2021 · 2 comments
Open

Feature Request: Disable commands #10

nullpanda opened this issue Jan 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@nullpanda
Copy link

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
Copy link
Member

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
Copy link

supsm commented Jan 30, 2021

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.

@Martmists-GH Martmists-GH added the enhancement New feature or request label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants