Files
apollo/game/plugin/emote-tab/src/emote-tab.plugin.kts
T
2018-04-01 22:49:26 +01:00

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)
}