/Daily Command

  • 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 comminuty!

    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!

Vejenskoler

Member
Jun 23, 2025
1
0
1
i have a server i need a /Daily but i cant get it to work



command /Daily:
trigger:
set {_today} to now

if {daily::%player%} is set:
if {daily.%player%} = {_today}:
send "&cYou have already claimed your daily crate today!" to player
stop
else:
execute console command "cc give virtual Dailycrate 1 %player%"
send "&aYou have received your Daily Crate key! Come back tomorrow." to player
set {daily::%player%} to {_today}
 
i have a server i need a /Daily but i cant get it to work



command /Daily:
trigger:
set {_today} to now

if {daily::%player%} is set:
if {daily.%player%} = {_today}:
send "&cYou have already claimed your daily crate today!" to player
stop
else:
execute console command "cc give virtual Dailycrate 1 %player%"
send "&aYou have received your Daily Crate key! Come back tomorrow." to player
set {daily::%player%} to {_today}
There is a cooldown option for commands and would allow you to write your code without any variables.
 
C++:
command daily:
    cooldown: 24 hour
    cooldown message: &c&lPlease wait %remaining time%
    trigger:
        execute console command "cc give virtual Dailycrate 1 %player%"
        send "&aYou have received your Daily Crate key! Come back tomorrow." to player