LuckPerms

LuckPerms

41.4k Downloads

Ability to export permissions of certain servers

DarkFort opened this issue · 14 comments

commented

It would be very convenient to export the permissions of certain servers or groups. For example:
/lp export
/lp export server:survival - export survival server permissions
/lp export groups - export groups, prefixes, suffixes and weight

This is very convenient if you want to separate some permissions from the entire list, since often this list is very huge and it is very difficult to edit it manually.

commented

I agree, it will be useful!

commented

What exactly is your end goal where you would need to only export the permissions applying to a server?

Also does this include global permissions or just permissions with that specific context?

commented

Oops. I want to be able to export permissions to a specific context, I think can specify a few. For example /lp export server:survival,global

commented

But why. I think you might be trying to do something that can be solved easier in a different way.

commented

I do not know of another solution. Maybe you offer your solution?

commented

Why do you want to export permissions for a specific context?

What do you want to achieve with it?

What is your goal?

commented

This is useful for migrating the permissions of a specific server. For example, I want to transfer bedwars permissions and global prefixes, suffixes and weight to another server. I repeat, the list of permissions I have is very large and it is not convenient to do manually

commented

Why not use a shared database?
Without one server contexts are pretty useless anyways.

commented

I don't know what you're talking about, but I share a database. But you can only export everything together, nothing else. That's the problem.

commented

Then give them different names. I’m not aware of any setup where using a common database for all servers wouldn’t make any sense.

And I mean you can group servers together and assign certain permissions per server group instead of per server. Then you can still have server specific overrides.

What you’re trying to do sounds like a very round about way of doing things and like a very whacky setup.

commented

Yes, I support @DarkFort. I've had quite a few issues with transferring certain permissions to another server.

commented

Why do you need to transfer permissions to another server when they are using a shared/common database? Just let the server use the same database.

commented

Oh, no, this option is not suitable, since the servers have the same name in the config and different permissions structure. Also, I collect servers for the order, so this feature will be very useful.

commented

Your suggestion for /lp export groups can already be achieved using /lp export --without-users.

I don't see a need for the server specific flag.