Add commands for managing operators - #1823
Conversation
|
This feels more like something that should be done as a plugin. This is also not useful, since all servers prefer to use permissions than giving operator access to their players. |
|
I tried to achieve that using a plugin. However, I couldn't find a way to change the permission level or bypassesPlayerLimit with the API. The goal of this command suite is to allow for more control over the operator privileges themselves. It is not intended to replace the use of a permissions plugin. Both of them are essential, as a number of game's features do not have a permission node. And for some of the features that do, they don't fully work as intended. |
|
This add very little to not benefit at all. I don't see why we should have an operator managing system when production servers don't really use operators, and testing servers where op is used, don't really care who is operator and who is not. It looks like this is something only a few users, if none at all, will find it useful. I prefer to expand the API to allow this to be made as a plugin rather than have it as a server feature. |
What if we (or Paper) added the missing API, instead? |
|
I'd be happy to give making the plugin another try if the API were to be added. If the Paper Team is okay with it, it would be best to add the missing code to Paper. That way, it could benefit more projects. As much as I would like to help out with that, my main specialty is using an API. I'm not familiar with making/expanding an API. |
|
You can make a feature request on Paper. If it's not accepted, we will consider adding it here. |
|
I've opened a feature request on the Paper repository. |
I would like to suggest implementing commands for managing operators.
Currently, there is no way to change a player's operator level without editing the "ops.json" file. Similarly, you cannot change the value of "bypassesPlayerLimit" without editing the file.
This addition would allow server owners to have more control over players they grant operator privileges to. The "/oplevel" command can be used to change the permission level, while "/bypassplayerlimit" changes the value of the "bypassesPlayerLimit" entry.
There is also an "/opinfo" command, which shows a list of operators and allows you to see information for a specific player.
Having these commands alongside a permissions plugin would allow for even better customisation of a server's permission setup. This would be especially helpful in cases where a functionality does not have a working permission node.