EssentialsX

EssentialsX

2M Downloads

Feature Request: Make command cooldowns such as /spawn and /tpa only "cool-down" when player online

Joe7670 opened this issue · 9 comments

commented

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.

commented

Is this use case that you give cooldowns that are really long... like 1 hour or 1 day? And they don't persist.

commented

I think he wants the cooldown to "pause" when the user logs out.

commented

What lax says

commented

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.

commented

@drtshock While this is a cool feature, how are we going to tackle this? By saving the cooldown info in the userdata?

commented

I assume this would involve storing the time left on each cooldown when the user logs out.

commented

@md678685 That what I was trying to demonstrate. I mean is there any more effective way to this?

commented

Not that I can think of, unless someone has any other suggestions.

commented

@md678685 I might see how I can do after I have finished with my current PR