applyCooldown

fun applyCooldown(entity: Entity, delay: Long = defaultLength)(source)

Applies this cooldown to the given entity. After the given delay, the cooldown will be removed automatically.