Open Happyfrozenfire opened 1 year ago
What version are you running? Is it possible that you can provide those command aliases files as well?
Version: MC 1.19.2, Fabric 0.4.10, CommandAliases 0.9.4 addbonus:
{
"commandMode": "COMMAND_CUSTOM",
"customCommand":
{
"parent": "addbonus",
"permission": 4,
"actions":
[
{
"command": "lp user $executor_name() parent add bonus",
"commandType": "SERVER"
}
]
}
}
removebonus replaces the add
argument with remove
, and changeorigin
doesn't need to run in an mcfunction.
The point of this is as a workaround due to luckperms not allowing the use of selectors in commands. Running execute as @a run addbonus
in a command block works fine. I just can't reference addbonus in the mcfunction.
Quick question does reloading the datapack using /reload
still not let you reference addbonus
?
To be honest, I have no idea why it won't let you reference it as a command.
I assume you can reference lp user @a parent add bonus
directly.
Nah, it still doesn't let me reference addbonus
. I can reference lp user @s parent add bonus
directly, but at the time, my config was a default where lp wouldn't let me use selectors. Turns out, you can allow lp selectors in config, so I don't this solution anymore, but it's still weird
The main issue is that Command Aliases are registered after default mod commands and datapacks, making it impossible for the datapack to locate them. Additionally, moving the Command Aliases registration to the default one would cause a failure to locate commands from mods loaded after Command Aliases.
I have three custom commands (each without arguments) that load in without issue:
I call one of these in a datapack mcfunction:
Upon loading up my server or reloading the datapacks, I get errors along the lines of this:
Running the addbonus command in-game works perfectly fine, so my hypothesis is that, when the server loads in the commands, it doesn't load them in where mcfunctions can see them. Is there any way to fix that?