LuckPerms

LuckPerms

41.4k Downloads

Multiple contexts of the same type on one permission node do not work

Brokkonaut opened this issue ยท 3 comments

commented

I tried to have a permission with 2 contexts of the same type (server=skyblock server=arcade).
I think that should work to have the permission on those two servers ( https://github.com/lucko/LuckPerms/wiki/Context#setting-contexts )

But after setting that, I do not have the permission on any of those servers.

In my original configuration I use MariaDB storage, but for testing I generated a fresh config.yml, the only modified value is the server (set to arcade)

lp info
[06:49:09 INFO]: [LP] Running LuckPerms v5.1.51 by Luck.
[06:49:09 INFO]: [LP] - Platform: Bukkit
[06:49:09 INFO]: [LP] - Server Brand: Paper
[06:49:09 INFO]: [LP] - Server Version:
[06:49:09 INFO]: [LP] git-Paper-d7cfa4fa5 (MC: 1.15.2) - 1.15.2-R0.1-SNAPSHOT
[06:49:09 INFO]: [LP] - Storage:
[06:49:09 INFO]: [LP] Type: H2
[06:49:09 INFO]: [LP] File Size: 0,03MB
[06:49:09 INFO]: [LP] - Messaging: None
[06:49:09 INFO]: [LP] - Instance:
[06:49:09 INFO]: [LP] Static contexts: server=arcade
[06:49:09 INFO]: [LP] Online Players: 1 (1 unique)
[06:49:09 INFO]: [LP] Uptime: 1m 12s
[06:49:09 INFO]: [LP] Local Data: 1 users, 1 groups, 0 tracks

lp user Brokkonaut permission info
[06:49:13 INFO]: [LP] brokkonaut does not have any permissions set.

lp user Brokkonaut permission set testperm true server=arcade server=skyblock
[06:49:17 INFO]: [LP] Set testperm to true for brokkonaut in context server=skyblock, server=arcade.

lp user Brokkonaut permission info
[06:49:22 INFO]: [LP] brokkonaut's Permissions: (page 1 of 1 - 1 entries)
[06:49:22 INFO]: > testperm (true) (server=arcade) (server=skyblock)

lp user Brokkonaut permission checkinherits testperm server=arcade
[06:49:37 INFO]: [LP] brokkonaut has permission testperm set to undefined in context server=arcade. (inherited from self)

lp user Brokkonaut permission checkinherits testperm server=skyblock
[06:49:41 INFO]: [LP] brokkonaut has permission testperm set to undefined in context server=skyblock. (inherited from self)

commented

I think the checkinherits command is not working properly with multiple contexts yet (so leave it open if the rest of my comment fixes your issue because that would be an actual bug).
See if the permission actually applies in game.

commented

Yes, you are right. I really have the permission, only the command output is incorrect

commented

checkinherits looks for an exact match - this is intended (for now!) :)