LuckPerms

LuckPerms

41.4k Downloads

/lp import uses wrong path on SpongeForge

mdcfe opened this issue ยท 6 comments

commented

When running /lp import permsexport, I get the following output:

[LP] Error: File /home/server/ms3/4.1.1/./luckperms/permsexport does not exist.

It appears LP determines the path from the server root to the config directory is ./luckperms/, not config/luckperms/.

SpongeAPI: 7.1.0-SNAPSHOT-43d8496
SpongeForge: 1.12.2-2705-7.1.0-BETA-3136
Forge: 14.23.4.2705
LuckPerms: 4.2.19

commented

(it's meant to target /luckperms/, but not ./luckperms/ as in the error you posted

commented

Does Sponge's @Inject @ConfigDir(sharedRoot = false) on a field work correctly? I don't know how that internally determines the right directory, but it seems to point to config/<plugin>/ from my experience.

commented

Yes it does, but LP data isn't stored there.

commented

That's a misunderstanding on my part, then, though I agree the ./ doesn't make sense.

commented

Just got a chance to look a bit deeper into this issue.

Seems to be a SpongeForge bug - can't reproduce this on SV - so will submit a fix there.