weaondara/BungeePerms

Apply permissions by specifying multiple servers at once

Closed this issue · 5 comments

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.

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

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.

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

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.

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'