diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-26 09:13:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-26 09:13:58 +0200 |
commit | 0b3d2dfc3119862f478954e8c179636d75ea81b1 (patch) | |
tree | e9bd67dc43a397fc391eb346666d0310ec4cfda6 | |
parent | c93716282d266c786ef4f88eec9dab5b8e0b20bc (diff) | |
download | skyhanni-0b3d2dfc3119862f478954e8c179636d75ea81b1.tar.gz skyhanni-0b3d2dfc3119862f478954e8c179636d75ea81b1.tar.bz2 skyhanni-0b3d2dfc3119862f478954e8c179636d75ea81b1.zip |
Added missing beep sound to rejoin SkyBlock after kick warning.
-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 |