So there is probably a SUPER easy way to do this but I want to be able to run a function in a command, this is pretty much so I can do some dev testing with a plugin I have in the works, now I know I could do like
now what I want differs from the above code in two ways
the first,
I want it so it will allow you to plug in the variable as well so if you were to do /function test(cheatchki) It would run the function like that
and second,
I want it so I don't have to define the function within the command as well so
code_language.skript:
function test(player: player):
message "example function" to {_player}
command /function <text>:
if arg-1 is "test":
test(player)
now what I want differs from the above code in two ways
the first,
I want it so it will allow you to plug in the variable as well so if you were to do /function test(cheatchki) It would run the function like that
and second,
I want it so I don't have to define the function within the command as well so
code_language.skript:
function test(player: player):
message "example function" to {_player}
command /function <text>:
run arg-1 as a proper function?