Cant seem to get "cancel cooldown" to work

  • 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.

kekejibi000

Member
Sep 6, 2019
1
0
0
New to skripting. What am I doing wrong here? I'm trying to make it so it cancels the cooldown when the player doesnt include arg-1 and arg-2 into the command. I have skLib and SkQuery, am I missing a dependency?

Code:
command /report <player> <text>:
    description: Report a player for committing an offense.
    usage: /report <player> <reason>
    executable by: players
    permission: report.report
    permission message: &cYou do not have access to this command.
    cooldown: 30 seconds
    cooldown message: &cPlease wait %remaining time% before running this command again.
    cooldown bypass: report.bypass
    trigger:
        if arg-1 and arg-2 are set:
            message "&4&l> &2Report received!"
            message "&7[&4&lReport&7] %player% &7reported &4&l%arg-1%&7 for &4%arg-2%&7." to all players where [player input has permission "report.notify"]
            log "%player% reported %arg-1% for %arg-2%" to "./reports.log"
        else:
            cancel cooldown
            message "&f/report <player> <reason>"
            stop
 
Status
Not open for further replies.