aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java8
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboPlaytime.kt4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
index 5e9a82e03..6e4fe4f12 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/MiscConfig.java
@@ -224,6 +224,14 @@ public class MiscConfig {
@Expose
@ConfigOption(
+ name = "Limbo Playtime Detailed",
+ desc = "Show your total time in limbo in the detailed /playtime.")
+ @ConfigEditorBoolean
+ @FeatureToggle
+ public boolean showLimboTimeInPlaytimeDetailed = true;
+
+ @Expose
+ @ConfigOption(
name = "Lesser Orb of Healing Hider",
desc = "Hides the Lesser Orb of Healing.")
@ConfigEditorBoolean
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboPlaytime.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboPlaytime.kt
index 8d4b3489f..d5a8a3765 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboPlaytime.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboPlaytime.kt
@@ -1,5 +1,6 @@
package at.hannibal2.skyhanni.features.misc.limbo
+import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.ProfileStorageData
import at.hannibal2.skyhanni.events.InventoryOpenEvent
import at.hannibal2.skyhanni.events.LorenzToolTipEvent
@@ -37,6 +38,7 @@ object LimboPlaytime {
private var hoursString: String = ""
private val storage get() = ProfileStorageData.playerSpecific?.limbo
+ private val enabled get() = SkyHanniMod.feature.misc.showLimboTimeInPlaytimeDetailed
private val itemID = "ENDER_PEARL".asInternalName()
private val itemName = "§aLimbo"
@@ -45,6 +47,7 @@ object LimboPlaytime {
@SubscribeEvent
fun replaceItem(event: ReplaceItemEvent) {
+ if (!enabled) return
if (event.inventory !is ContainerLocalMenu) return
if (event.inventory.name != "Detailed /playtime") return
if (event.slotNumber != 43) return
@@ -76,6 +79,7 @@ object LimboPlaytime {
@SubscribeEvent
fun onTooltip(event: LorenzToolTipEvent) {
if (!LorenzUtils.inSkyBlock) return
+ if (!enabled) return
if (!event.slot.inventory.name.startsWith("Detailed /playtime")) return
if (event.slot.slotIndex != 4) return
val playtime = storage?.playtime ?: 0