How can I make like 2 hour cooldowns? I know how to make 30 second cooldowns etc but I store this data in an array and I can’t do that for the 2 hour cool down because my server restarts every 30 min and I won’t be changing that.
Ok, after the array is saved into the file and the timer is up how can i delete the now consider garbage data.
What array? Why an array? Just save an unix timestamp if you want it to be real-time, or save the remaining ticks if you want to have it game-time (game-time means your timer wouldn't continue to "run" if the server is shutdown)