RuneHive-Game
Loading...
Searching...
No Matches
InputStringEvent.kt
Go to the documentation of this file.
1package org.jire.runehiveps.event.widget
2
3import com.runehive.game.world.entity.mob.player.Player
4import com.runehive.util.Utility
5import kotlin.jvm.optionals.getOrNull
6
7/**
8 * @author Jire
9 */
10class InputStringEvent(val inputLong: Long) : WidgetEvent {
11
12 override fun handle(player: Player) {
13 val input = Utility.longToString(inputLong).replace('_', ' ')
14 player.enterInputListener.getOrNull()?.accept(input)
15 }
16
17}