LuckPerms

LuckPerms

41.4k Downloads

World rewrites

Loonyy opened this issue · 4 comments

commented

Hey, I'm having an issue with world rewrites on the latest version.
My config is below for world rewrites yet it's still not giving users the permissions from world. Any help?

# this list, the value assigned will be sent forward for permission calculation instead.
world-rewrite:
  world_nether: 'world'
  ResourceWorld: 'world'
  world_the_end: 'world'
  spawn: 'world'
  NewSpawn: 'world'
#  world_the_end: world
commented

Can you check using the /lp user <user> info command to see if the extra world contexts are being added?

commented
04.04 01:32:52 [Server] INFO [LP] > User Info: elementum
04.04 01:32:52 [Server] INFO [LP] - UUID: 65702d2d-920f-433f-9866-ecd9c21c8093
04.04 01:32:52 [Server] INFO [LP] - Status: Online
04.04 01:32:52 [Server] INFO [LP] - Primary Group: moderator
04.04 01:32:52 [Server] INFO [LP] - Parent Groups:
04.04 01:32:52 [Server] INFO [LP] -    > default
04.04 01:32:52 [Server] INFO [LP] -    > moderator
04.04 01:32:52 [Server] INFO [LP] -    > emperor
04.04 01:32:52 [Server] INFO [LP] - Contextual Data:
04.04 01:32:52 [Server] INFO [LP] -    Has contextual data: true
04.04 01:32:52 [Server] INFO [LP] -    Applicable contexts: (server=bending) (world=resourceworld)
04.04 01:32:52 [Server] INFO [LP] -    Prefix: "⊰Moderator⊱ "
04.04 01:32:52 [Server] INFO [LP] -    Suffix: None
04.04 01:32:52 [Server] INFO [LP] -    Meta: (default=false) (default=false) (default=false) (default=true) (default=true) (default=false) (default=false) (default=false) (default=false) (default=false) (weight=985)
commented

Figured out the issue. In world-rewrite, your world names have to be lower case.
My worlds are named with capitals so in my config I used them (ResourceWorld) but LuckPerms viewed that world as lowercase as you can see from the code above.

Not sure if that's intended or not.

commented

This is fixed already in the latest build