[Feature Request] : Allow setting a custom admin permission (e.g., @css/retakes)
First of all, thank you for developing and maintaining this great plugin.
Is your feature request related to a problem? Please describe. Currently, most of the admin commands (like !showspawns A) require the @css/root permission. To grant an admin access to these commands, I must give them full root privileges. This poses a security risk, as it also gives them unrestricted access to all other plugins and server functions, which is not always desirable.
Describe the solution you'd like I would like to request a feature that allows server owners to define a custom permission for the retakes plugin's admin commands.
Ideally, this could be managed via a configuration file. For example, a new entry in the config file could look like this:
admins.json
"only_permission_edit_retakes": {
"identity": "765999999999",
"groups": [
"#css/retakes"
]
}
This would allow us to assign a specific permission, like @css/retakes, for retakes-related commands, instead of using the hardcoded @css/root. This would greatly improve the granularity of admin roles.
Describe alternatives you've considered The current alternative is to either grant full @css/root permissions, which is not secure, or to fork the project and manually edit the source code. However, forking makes it difficult to apply future updates from your repository.
Adding this feature would be a great improvement for server security and management flexibility.
Thank you for your consideration.
This is a perfectly valid request, I can update it so you can specify your own via the configs 👍