-
Notifications
You must be signed in to change notification settings - Fork 2
TimeOut usage
하이라이트 edited this page Oct 27, 2022
·
2 revisions
withSafeTimeout(5000L) {
player.listen<EntityDamageByEntityEvent> { it.damager == player }.await()
}.onFailture { return }.getOrThrow().onSuccess { event ->
event.entity.sendMessage("You've been hit by, you've been struck by a smooth criminal")
}