diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-01-20 10:06:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 10:06:38 +0100 |
commit | 2d11b0cfe4adf7b6535d91cbdf339e47898d925e (patch) | |
tree | b52e4912cdd42fef593ddd040edd49fcd187b965 /src/main/java/at/hannibal2/skyhanni/features/chat | |
parent | 1f950c47b505a47ca49be67b7f0d85c2c65ae1da (diff) | |
download | skyhanni-2d11b0cfe4adf7b6535d91cbdf339e47898d925e.tar.gz skyhanni-2d11b0cfe4adf7b6535d91cbdf339e47898d925e.tar.bz2 skyhanni-2d11b0cfe4adf7b6535d91cbdf339e47898d925e.zip |
Feature: SkyblockXPInChat (#919)
Added Skyblock XP Chat. #919
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/SkyblockXPInChat.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/SkyblockXPInChat.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/SkyblockXPInChat.kt new file mode 100644 index 000000000..a4b7604ce --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/SkyblockXPInChat.kt @@ -0,0 +1,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.LorenzUtils +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 + LorenzUtils.chat(event.updated.value) + } +} |