code_language.skript:
command /test <text>:
trigger:
if arg 1 is "gun":
give a stone sword named "&aGun" to the player
on rightclick:
held item of the player is a stone sword named "&aGun":
shoot an snowball in direction of the player