Cool down with arguments

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

StarBen_

Member
Jun 21, 2019
4
0
0
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%"
 
Status
Not open for further replies.