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

Bbox admin perms command #2141

Merged
merged 4 commits into from
Jun 24, 2023
Merged

Bbox admin perms command #2141

merged 4 commits into from
Jun 24, 2023

Conversation

tastybento
Copy link
Member

@tastybento tastybento commented Jun 18, 2023

This adds a bbox perms command that will output in YAML format the effective perms for all addons and BentoBox itself. This output can be used to update the respective addon.yml's or plugin.yml's. It does not (yet) substitute in [gamemode] but that might be added.

The idea is to identify all the permissions that are available so that these can also be shared in documentation so that admins can more effectively manage permissions.

This PR also adds some API to CompositeCommand to enable commands to be console-only. This is similar to the player-only API. The goal of this is to prevent spammy commands designed for console output (mostly debug stuff) to not be used in-game. This is used by the perms command.

Made some admin commands have their own perm so that they can be
controlled  individually by permissions.
@tastybento
Copy link
Member Author

bbox perms output example can be seen here https://pastebin.com/bMd9809c

@tastybento
Copy link
Member Author

Thanks for the approval. I need to check that the API thing actually works. I was running a test and ran the command in game and it didn’t send the error message saying it was a console only command so I need to check where the bug may be.

@tastybento tastybento merged commit 2805e58 into develop Jun 24, 2023
@tastybento tastybento deleted the bbox_perms_command branch June 24, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants