Fabric API

Fabric API

108M Downloads

ambiguity WARNS in console when joining a world with my mod which has registered a client command, and error while executing said command

TechPro424 opened this issue ยท 1 comments

commented

Discussed in https://github.com/orgs/FabricMC/discussions/2875

Originally posted by TechPro424 January 31, 2023
Getting some WARNS in console when registering my command, and an error while executing it
https://gist.github.com/TechPro424/ea991a2524b785b79191a0fb5b57a05f
Please help me out and ping me when replying

I even tried changing the type of the groupname argument to int type, still same issue.
I also tried interchanging the order in which the arguments were registered, that did not fix it either.

I'm beginning to suspect that this might be an issue with Fabric's ClientCommandManager because nobody on the Discord or the Discussions seems to have a solution, when usually, there'd be somebody or the other who knew what the issue was.

Of course, it could also be just me going wrong somewhere, but I have a feeling that's not the case here.

Edit:
Forgot to mention something: When I change the argument type to int, the error changes to

[15:02:17] [Render thread/WARN] (ClientCommandInternals) Ambiguity between arguments [addgrouptoconfig, groupid] and [addgrouptoconfig, playernames] with inputs: [0, -123, 123]

Also, the WARN is logged when I join a world, not when I register the command

commented

Never mind, it was just me going wrong somewhere
Sorry for taking up your time