diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 12 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index dd029147c..c55c7b3d1 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -644,9 +644,9 @@ public class MiscConfig { @Expose @ConfigOption( - name = "Enabled", - desc = "Show in the Hypixel lobby since when you were last kicked from SkyBlock (" + - "useful if you get blocked because of '§cYou were kicked while joining that server!§7')." + name = "Enabled", + desc = "Show in the Hypixel lobby since when you were last kicked from SkyBlock (" + + "useful if you get blocked because of '§cYou were kicked while joining that server!§7')." ) @ConfigEditorBoolean @FeatureToggle @@ -655,9 +655,9 @@ public class MiscConfig { @Expose @ConfigOption(name = "Warn Time", desc = "Send warning and sound this seconds after a SkyBlock kick.") @ConfigEditorSlider( - minValue = 5, - maxValue = 300, - minStep = 1 + minValue = 5, + maxValue = 300, + minStep = 1 ) public Property<Integer> warnTime = Property.of(60); diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt index 5325da375..d536b8f53 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/SkyBlockKickDuration.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.SimpleTimeMark +import at.hannibal2.skyhanni.utils.SoundUtils import at.hannibal2.skyhanni.utils.TimeUtils.format import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import kotlin.time.Duration.Companion.minutes @@ -82,6 +83,7 @@ class SkyBlockKickDuration { private fun warn() { LorenzUtils.sendTitle("§eTry rejoining SkyBlock now!", 3.seconds) + SoundUtils.playBeepSound() } fun isEnabled() = config.enabled |