Why don't you just make the right click event handle all of it?
on load:
set {item::magictoystick} to stick named "&c&lMagic Toy Stick"
command /magictoystick:
trigger:
give 1 of {item::magictoystick} to player
on right click:
if player is holding {item::magictoystick}:
if difference between now and {%player's uuid%.magictoystick.lastUsed} is less than 5 seconds:
send "&cYou Must Wait But You Can Shoot Again" to player
else:
make player shoot fireball at speed 1.3
set {%player's uuid%.magictoystick.lastUsed} to now
Kinda over engineered but works the same.
Edit:
No need to add some addon for a single skript