Using 2.2 Dev 29.
I've been beating my head against a wall for a while here trying to call a function in an On Command event.
Is it even possible if arguments can't be used in an On Command event?
If so, what I want to accomplish is when a command is used, like /mute or /jail etc, it executes a function that logs a note. so something like this:
This, of course, produces the error that arguments can't be used in an On Command event. I can get the function to call properly from within a custom command by setting those arguments, but it'd really stink to have to remake all the mute and jail commands.
Any advice? Thanks so much!
I've been beating my head against a wall for a while here trying to call a function in an On Command event.
Is it even possible if arguments can't be used in an On Command event?
If so, what I want to accomplish is when a command is used, like /mute or /jail etc, it executes a function that logs a note. so something like this:
code_language.skript:
on command "mute":
if arguments are not set:
stop
set {_pl} to player-argument parsed as offline player
set {_txt} to text-argument
addNote(player, player, text)
Any advice? Thanks so much!