RuneHive-Game
Loading...
Searching...
No Matches
Event.kt
Go to the documentation of this file.
1
package
org.jire.runehiveps.event
2
3
import com.runehive.content.gambling.GambleStage
4
import com.runehive.game.world.entity.mob.player.Player
5
6
/**
7
* @author Jire
8
*/
9
interface 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
}