mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
7 lines
212 B
Kotlin
7 lines
212 B
Kotlin
import org.apollo.game.message.impl.ButtonMessage
|
|
|
|
on { ButtonMessage::class }
|
|
.where { widgetId in Emote.MAP }
|
|
.then { player ->
|
|
player.playAnimation(Emote.fromButton(widgetId)!!.animation)
|
|
} |