Hi, I need help, I'm trying to make a slap command but the cooldown executes even when you dont write the arguments basically the cooldown is going off even if you write /slap without writing the players name and the text
this is the code
Command /slap <player> <text>:
aliases: /sl
permission: sky.support
cooldown: 10 minutes
cooldown message: &cPlease wait %remaining time% before using this command again.
trigger:
if arg-2 is not set:
cancel the cooldown
stop
else:
broadcast "&3%player% &7slapped &3%arg-1% &7for &3%arg-2%"
this is the code
Command /slap <player> <text>:
aliases: /sl
permission: sky.support
cooldown: 10 minutes
cooldown message: &cPlease wait %remaining time% before using this command again.
trigger:
if arg-2 is not set:
cancel the cooldown
stop
else:
broadcast "&3%player% &7slapped &3%arg-1% &7for &3%arg-2%"