RuneHive-Game
Loading...
Searching...
No Matches
Event.kt
Go to the documentation of this file.
1package org.jire.runehiveps.event
2
3import com.runehive.content.gambling.GambleStage
4import com.runehive.game.world.entity.mob.player.Player
5
6/**
7 * @author Jire
8 */
9interface Event {
10
11 fun canHandle(player: Player) =
12 !player.isDead
13 && player.gambling.stage != GambleStage.PLACING_BET
14 && player.gambling.stage != GambleStage.IN_PROGRESS
15
16 fun handle(player: Player) {}
17
18}