I am trying to make a tab completer using skqurey and i have done it but now it does it for both arguments when i only want it to do it for the first one is there away to fix this?
on tab completer for "/et":
set {_completers::*} to "give", "take", "set" and "reset"
loop {_completers::*}:
add loop-value to completions
command /et <string> <number>:
permission: "op"
trigger:
if arg-1 is "give":
add arg-2 to {token.%player%}
if arg-1 is "take":
remove arg-2 from {token.%player%}
if arg-1 is "set":
set {token.%player%} to arg-2
if arg-1 is "reset":
reset {token.%player%}
on tab completer for "/et":
set {_completers::*} to "give", "take", "set" and "reset"
loop {_completers::*}:
add loop-value to completions
command /et <string> <number>:
permission: "op"
trigger:
if arg-1 is "give":
add arg-2 to {token.%player%}
if arg-1 is "take":
remove arg-2 from {token.%player%}
if arg-1 is "set":
set {token.%player%} to arg-2
if arg-1 is "reset":
reset {token.%player%}