weaondara / BungeePerms

A permissions plugin for BungeeCord/Waterfall/Velocity and Spigot/Paper
GNU General Public License v3.0
53 stars 43 forks source link

Apply permissions by specifying multiple servers at once #365

Closed dalbodeule closed 4 years ago

dalbodeule commented 4 years ago

This time, I have created a large enough content that I have to divide a server of one content into several for optimization. I used BungeePerms at this point, and I felt a little uncomfortable using it.

In case of BungeePerms, because it is linked with BungeeCord, it is designed to specify permission for each server and each world unlike other Permission Plugin. The problem is in specifying the server name.

As described above, when one content is divided into several servers and then interlocked, the same permission may need to be applied to multiple servers. However, BungeePerms automatically updates the servername field in Config, so to apply the same permission to multiple servers, you must write a permission rule for each server as follows:

    server:
        rpg_field:
            permissions:
            - a.a
        rpg_town:
            permissions:
            - a.a

I would at least wish to have something efficient like this when writing server-specific permissions:

    server:
        rpg_(?:field|town):
            permissions:
            - a.a

I used a translator because I am not good at English. There may be an error.

aurorasmiles commented 4 years ago

Thanks for the feedback. If I understood you correctly, you would like to have a permission match to multiple servers at once, for example via a RegEx? Is that correct? Sounds very interesting, we'll look on how this could be implemented

dalbodeule commented 4 years ago

Yes. it's correct. But I'm not sure how to implement this idea ... I've found a need to apply permissions on multiple servers at once, but I don't know how to compromise performance and demand.

aurorasmiles commented 4 years ago

If you use a database as a Backend the performance is way better, especially if you have many permissions.

dalbodeule commented 4 years ago

Another option is to change the existing servername field to update manually. You will be able to specify multiple servers at once that require the same permissions.

weaondara commented 4 years ago

Hi, I added a possibilty to do that now. new version here: https://ci.wea-ondara.net/job/BungeePerms/ To do this, create a new group and add the permissions to group you want to have on some servers. Then add this group to your builder (or whatevery you call it) with '/bp group builder addinherit newgroup someserver'