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