Fabric 1.20.1 - internal/Server undefined permissions - running lp commands through script
SirReal314 opened this issue ยท 0 comments
Description
Carpet mod scripts can no longer execute lp
commands unless run by player with perms. The command is sent but rejected saying the internal/Server
has undefined
perms.
Verbose: https://luckperms.net/verbose/67ENVnwHya
Carpet mod dev suggests something might have changed with LP permission manager between v5.4.66
and v5.4.83
because the way scarpet scripts are executed with global
scope (by the server) did not change. Scarpet can only execute it if run by a player with LP perms (since it passes on the command source).
This of course breaks autorank and other permission handler scripts.
Reproduction Steps
-
Create a 1.20.1 Fabric server with api
v0.91.0
, LPv5.4.83
, and Carpet modv1.4.112
. -
With player with LP perms, run
/script run run('lp user <user> parent add <group>');
and this will successfully execute. -
From console run
/script run run('lp user <user> parent add <group>');
and this will not execute successfully. -
(Optional) Run
/carpet commandScriptACE 4
to allow scapret to run with op lvl 4 and repeat with same results (since LP doesn't care).
Expected Behaviour
Pre 1.20.1, both player and console could execute the command.
-
Create a 1.19.4 server with api
v0.87.2
, LPv5.4.66
, and Carpetv1.4.101
. -
With player with LP perms, run
/script run run('lp user <user> parent add <group>');
and this will successfully execute. -
From console run
/script run run('lp user <user> parent add <group>');
and this will also execute successfully. -
(Optional) Run
/carpet commandScriptACE 4
to allow scapret to run with op lvl 4 and repeat to same results (since LP doesn't care).
I would test higher MC versions but I am unable to due to an unrelated mixin injection exception with LP.
Server Details
Fabric 1.20.1, loader v0.14.21
LuckPerms Version
v5.4.83
Logs and Configs
https://luckperms.net/verbose/67ENVnwHya
Extra Details
No response