This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Trying to make a command that behaves two ways. One way if no argument passed, another way if argument passed.
example:
homes_home_alias: command: /home type: RUN_COMMAND runcmd: - '$Script$%if%$multiargs==""' - '/essentials:home home' - '$text$a' - '$Script$%else%' - '/essentials:home $multiargs' - '$text$b' permission-required: false
Expecting:
command: /home
output1: a
command: /home farm
output2: b
Actual:
output1: b
This is a must in my opinion. The latest update breaks this as well because I believe it requires an argument whether it's empty or not, it just provides an error otherwise.
To post a comment, please login or register a new account.