Feature Request: Make command cooldowns such as /spawn and /tpa only "cool-down" when player online
Joe7670 opened this issue · 9 comments
Pretty much title. If I set a cooldown on a command such as /tpa or /spawn. I want that cooldown only to "cool-down" or make it so the timer which counts down until they're able to use the command again online works when the player is online. That way players won't have the option to log out for an hour, come back and the cooldown is finished.
Is this use case that you give cooldowns that are really long... like 1 hour or 1 day? And they don't persist.
OHHHHH makes sense. This would be a cool feature, but would require a decent change. I'm in support of having this as an option of how cooldowns can work while still defaulting to our current behavior.
@drtshock While this is a cool feature, how are we going to tackle this? By saving the cooldown info in the userdata?
I assume this would involve storing the time left on each cooldown when the user logs out.
@md678685 That what I was trying to demonstrate. I mean is there any more effective way to this?
@md678685 I might see how I can do after I have finished with my current PR