blob: d0a08c86fd4d6f84fd6e8a3d18c657f62fdb6421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package at.hannibal2.skyhanni.features.chat
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.ActionBarStatsData
import at.hannibal2.skyhanni.events.ActionBarValueUpdateEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.ChatUtils
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@SkyHanniModule
object SkyblockXPInChat {
val config get() = SkyHanniMod.feature.chat.skyBlockXPInChat
@SubscribeEvent
fun onActionBarValueUpdate(event: ActionBarValueUpdateEvent) {
if (event.updated != ActionBarStatsData.SKYBLOCK_XP) return
if (!config) return
ChatUtils.chat(event.updated.value)
}
}
|