Unable to run lp commands from command block
deadfish12 opened this issue ยท 6 comments
Description
I just updated the plugin from 5.2.106 to 5.3.21, and find out commands that worked before are not working now.
In version 5.2.106, /lp commands cannot be used in command blocks directly, but can be used with the PsudoCommands plugin.
After updating to version 5.3.21, "Running LuckPerms v5.3.21" is returned when trying to run /lp commands directly from a command block and with PsudoCommands. This message is usually returned when the player runs /lp commands without permissions. The results are the same with register-command-list-data: false , resolve-command-selectors: true
Reproduction steps
- Update LuckPerms to 5.3.21
- Run "/lp user permission set " from a command block
- See output of command block
- Run "/psudo user permission set " from a command block with the PsudoCommands plugin
- See output of command block
Expected behaviour
/lp commands should run normally from a command block. Even if they can't be run directly, they should be running with PsudoCommands as before.
Environment details
- Server type/version: Tuinity version git-Tuinity-"44e8e5d" (MC: 1.16.5)
- LuckPerms version:
v5.3.21
Any other relevant details
PsudoCommands plugin: https://www.spigotmc.org/resources/psudocommands-add-the-target-selector-to-plugin-commands.56738/
I can't seem to reproduce the issue, can you paste your LP config in a paste site and share it here?
PsudoCommands isn't required FYI, setting register-command-list-data
to false should suffice.
LP config file https://paste.lucko.me/OWOeIRBEZv
I see the issue, commands-allow-op: false
also prevents command blocks (since they don't have permissions and are considered op instead); not entirely sure if this is intended or not.. I'm curious as to what Luck thinks.
What you can do for now is set that setting to true.. that's the only way to get it to work.
Thanks! The command block can run lp commands (with or without psudo) after setting commands-allow-op to true. However, it worked before in version 5.2.106 with commands-allow-op: false
so I'm not sure if it's considered as an issue or not.
What changed is how and what LuckPerms considers a command sender "console", this changed for security reasons as players could take advantage of a network exploit and LuckPerms would consider them to be "console".
Now LP considers console in a safer manner, this is something that can easily be changed to allow command blocks in.