Runs something if no cooldown is active and starts the cooldown only if run returns true.
Return
whether run was executed.
Parameters
The key for this cooldown.
The length of this cooldown in milliseconds.
What to run if this cooldown is complete. Returns whether or not to start the cooldown.