command /test []: trigger: if arg 1 is set: if arg 1 is 1: send "test1" stop if arg 1 is 2: send "test2" stop if arg 1 isn't set: execute player command "test 1" stop