RuneHive-Game
Loading...
Searching...
No Matches
PrivacyOptionEvent.kt
Go to the documentation of this file.
1package org.jire.runehiveps.event.widget
2
3import com.runehive.game.world.entity.mob.player.Player
4
5/**
6 * @author Jire
7 */
8class PrivacyOptionEvent(
9 val publicMode: Int,
10 val privateMode: Int,
11 val tradeMode: Int,
12 val clanMode: Int
13) : WidgetEvent {
14
15 override fun handle(player: Player) {
16 player.relations.setPrivacyChatModes(publicMode, privateMode, clanMode, tradeMode)
17 }
18
19}