Default/placeholder values in a required command argument makes all subsequent arguments optional. #5238
Labels
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: lowest
"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Skript/Server Version
Bug Description
When giving required type arguments default values in commands (
<number=1>
), Skript automatically makes that argument and all subsequent arguments optional. See the provided snippet in Steps to Reproduce.Expected Behavior
This should, at most, make just the argument with the default value optional.
Steps to Reproduce
Errors or Screenshots
Other
Personally, I'm of the opinion it shouldn't make anything optional, and optional arguments should only be those surrounded by
[]
. The behavior of the argument becoming optional is un-intuitive, as normally the only optional arguments in commands are surrounded by[]
. Since this argument isn't, it appears required but actually isn't. Enforcing[]
for all optional commands would also mean commands would more closely follow the generally accepted convention for Minecraft commands:Agreement
The text was updated successfully, but these errors were encountered: