Jump to content

Need help with daily crate skript


AMONGUSLOVER1732

Recommended Posts

i would recommend using a variable for this shown here:
 

command /daily:
	trigger:
		if {cooldown::%player's uuid%} isn't set:
			daily(player)
		else if (difference between {cooldown::%player's uuid%} and now) is more than 24 hours
			daily(player)
		else:
			message "&cYou cannot do this command for another &f%difference between {cooldown::%player's uuid%} and now%!" to player

function daily(player: player) {
	set {cooldown::%{_player}'s uuid%} to now
	# daily code
}

EDIT: idk if this works, i haven't touched skript in so long 

Edited by oShadxw

image.png.6ef9881621a5d25f72f6ab490f612102.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...