RuneHive-Game
Loading...
Searching...
No Matches
Package slot
Functions
override fun
handleNpc
(player:Player, npc:Npc)
Function Documentation
◆
handleNpc()
override fun slot.handleNpc
(
player:Player
,
npc:Npc
)
Definition at line
12
of file
FirstNpcOptionEvent.kt
.
12
: Player, npc: Npc) {
13
if
(npc.id == 394 && player.position.isWithinDistance(npc.position, 2)) {
14
publishToPluginManager(player, npc)
15
}
else
{
16
super.handleNpc(player, npc)
17
}
18
}