RuneHive-Game
Loading...
Searching...
No Matches
ObjectExamineEvent.kt
Go to the documentation of this file.
1package org.jire.runehiveps.event.`object`
2
3import com.runehive.game.world.entity.mob.player.Player
4import com.runehive.net.packet.out.SendMessage
5import org.jire.runehiveps.objectexamines.ObjectExamines
6
7/**
8 * @author Jire
9 */
10class ObjectExamineEvent(val objectId: Int) : ObjectEvent {
11
12 override fun handle(player: Player) {
13 val examine = ObjectExamines.map.get(objectId) ?: return
14 if (examine != "null") {
15 player.send(SendMessage(examine))
16 }
17 }
18
19}