LuckPerms

LuckPerms

41.4k Downloads

vault-server and playerAddGroup

Sir-Will opened this issue ยท 2 comments

commented

hey,

I configured the vault-server option so it checks for permissions with that server context but my issue now is that it adds the server context when using the playerAddGroup method from Vault.

What can I do so it uses the context for hasPermission checks but uses global for add operations?

commented

Not rely on Vault??!! ๐Ÿ˜„

As I'm sure you know, Vault isn't oriented to contextual permission checks or assignments, beyond setting things in a specific world.

The options in the LP config are already somewhat messy, they're there just to at least make it possible to make use of Vault in a server specific environment. I don't see a clean way to add more customisation in this area.

My suggestion is that you use the native LuckPerms API to read/write (or at least for writing), as it has proper support for contextual assignments.

commented

Alright, thanks for the input.