Im making a /invis command that should allow me to use it on any player
However I have no idea how to pass the player as an argument to inside the skript.
My code:
Command /invis <player>:
permission: skript.invistru
Trigger:
If {invis} is not set:
Send "&bInvis mode is now &3enabled&b." to player
apply invisibility of tier 1 without particles to player for 99999 seconds
Set {invis} to true
Stop
Send "&bInvis mode is now &3disabled&b." to player
remove invisibility from player
Delete {invis}
Stop
However I have no idea how to pass the player as an argument to inside the skript.
My code:
Command /invis <player>:
permission: skript.invistru
Trigger:
If {invis} is not set:
Send "&bInvis mode is now &3enabled&b." to player
apply invisibility of tier 1 without particles to player for 99999 seconds
Set {invis} to true
Stop
Send "&bInvis mode is now &3disabled&b." to player
remove invisibility from player
Delete {invis}
Stop