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