Bonjour,
J'essai de créer un skript avec un "cooldown" et cela ne fonctionne pas et ca m'affiche <none>
command /dailycrate:
permission: beta.command
permission message: {@logo}&4 This command is still in beta!
aliases: /dc
trigger:
if {dailycrate::%player%::used} is not set:
message "{@logo} &2You have recieved your Daily Crate!"
give player 1 sticky piston named "&1&ki&2DailyCrate&1&ki&7" with lore "&7&oRight click me to get your daily reward!"
set {dailycrate::%player%::used} to now
stop
if {dailycrate::%player%::used} is set:
set {_waited} to difference between {dailycrate::%player%::used} and now
if {_waited} is less than 24 hours:
send "{@logo} &cYou can use this command again in %difference between {_waited} and {dailycrate::%player%::used}%"
stop
delete {dailycrate::%player%::used}
J'ai essayé %difference between {_waited} and {dailycrate::%player%::used}% et %difference between {dailycrate::%player%::used} and {_waited} %