Server crashes when command block is used to set permission
MrPistachios opened this issue · 7 comments
Description
We have multiple command blocks at spawn to set prefixes, suffixes, keep inventory true or false, and natural health regen true or false.
Each command block gives a player the permission by targeting them with the @p selector
lp user @p permission set noregen.on true server=neatobuilds
/lp user @p permission set essentials.keepinv false server=neatobuilds
lp user @p meta setsuffix &4
lp user @p meta setprefix &4
Reproduction steps
- Start server
- click on the button that triggers the command block
- the button triggers the first command block
/lp user @p permission set essentials.keepinv true server=neatobuilds
- then it triggers the second command block
say @p turned on Keep Inventory
- command goes through but when it sends to luckperms the server goes down
Here is the start and crash log
start and crash log
Here is the luckperms config for the server
config.yml
Expected behavior
Before all the command blocks worked fine until I recently upgraded the server to 1.16.4 and updated luckperms.
We used to use the 'commandhook' plugin but it failed as well then we learned we had the option for LuckPerms to resolve Vanilla command target selectors
Environment details
The server runs in a bungeecord network and serves as the main survival world where players first join and can choose a name and chat color and whether to enable keep-inv or not
- `>.... [18:54:09 INFO]: Previous version: git-Paper-259 (MC: 1.16.4)
.... [18:54:09 INFO]: You are running the latest version`
- LuckPerms version:
LuckPerms-Bukkit-5.2.23.jar
ok I copied over the command blocks to another server and removed all the plugins except Luckperms but still got a crash
start and crash log
let me try switching to a local h2 database now
here is the crash again on a H2 database after I imported the data from the mysql database
start and crash
we can do the command no problem by typing it in with or without the selector @p
, but when a command block does the command it crashes, even if the command block sets the permission with a playername instead of a selector
/lp user ArchGoddess permission set essentials.keepinv true
@benwoo1110 it already is
Can you try to reproduce on a clean server (i.e. nothing other than LP installed). The errors are the server not responding, which I'm doubtful is LP's fault since just about everything we can do off the main thread, we use a different thread(s).
I have the same issue with the new update (5.2.26) after restoring the previous version (5.1.107) it stopped happening.