You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/mycommand test2 4
/mycommand test 5
/mycommand test 5 -switchArgs
But I am getting this:
when executing:
/mycommand test2 4 -switchArg
/mycommand test 5 SkytAsul -switchArg
But if I execute all of these commands in console, I get no issue. It's only for players.
I also get normal syntax coloring in chat when typing the 2 failing commands, it only fails after I hit enter.
I can't find a reason why those two commands are failing.
The text was updated successfully, but these errors were encountered:
This is because of Brigadier. I'll try to look for better ways to structure commands that mix optional parameters with switches/flags, but if the issue is bugging you more than needed, you could disable Brigadier until it's fixed.
Switches and flags have been removed in v4 (until further notice, at best). They introduced many bugs and always required special handling as they do not fit quite well on most platforms' paradigms.
With those two commands:
It's working normally when I do:
But I am getting this:
when executing:
But if I execute all of these commands in console, I get no issue. It's only for players.
I also get normal syntax coloring in chat when typing the 2 failing commands, it only fails after I hit enter.
I can't find a reason why those two commands are failing.
The text was updated successfully, but these errors were encountered: