How would i go about implementing a daily reward?

How would i go about implementing a daily reward?

You will need to create a data store and store the time the player first joins. If the player leaves and rejoins, check if their previous time joined is greater than or equal to their last time joined + the number of seconds in a day.