Skip to content

Commit e11ca04

Browse files
committed
time settings now only display when check time is on
1 parent c76d2a4 commit e11ca04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/github/subat0m1c/hatecheaters/modules/BetterPartyFinder.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ object BetterPartyFinder : Module(
2626

2727
private val fullPartyNotification by BooleanSetting("Full Party Notification", default = true, description = "Notifies you when your party is full.")
2828
private val joinSound by BooleanSetting("Party Join Sound", default = false, description = "Plays a sound when someone joins your party.")
29+
2930
private val soundDropdown by DropdownSetting("Sound Dropdown")
3031
private val waitForKick by BooleanSetting("Wait for Kick", default = true, description = "Waits to see if the player will be kicked before playing the sound.").withDependency { joinSound && soundDropdown }
31-
32-
private val sound by SelectorSetting("Click Sound", "note.pling", defaultSounds, description = "Which sound to play when you click in a terminal.").withDependency { joinSound && soundDropdown}
32+
private val sound by SelectorSetting("Click Sound", "note.pling", defaultSounds, description = "Which sound to play").withDependency { joinSound && soundDropdown}
3333
private val customSound by StringSetting("Custom Click Sound", "note.pling",
3434
description = "Name of a custom sound to play. This is used when Custom is selected in the Sound setting.", length = 32
3535
).withDependency { sound == defaultSounds.size - 1 && joinSound && soundDropdown }
@@ -50,8 +50,8 @@ object BetterPartyFinder : Module(
5050
private val informkicked by BooleanSetting("Inform Kicked", default = false, description = "Informs the player why they were kicked.").withDependency { autoKickDropdwon }
5151
private val autokicktoggle by BooleanSetting("Auto Kick", default = false, description = "Automatically kicks players who don't meet requirements.").withDependency { autoKickDropdwon }
5252
private val timeKick by BooleanSetting("Check Time", default = false, description = "Kicks for time").withDependency { autoKickDropdwon && autokicktoggle }
53-
private val timeMinutes by NumberSetting("Minutes", 5, 0, 10, description = "Time minimum in minutes.", unit = "m").withDependency { autoKickDropdwon && autokicktoggle }
54-
private val timeSeconds by NumberSetting("Seconds", 0, 0, 60, description = "Time minimum in seconds.", unit = "s").withDependency { autoKickDropdwon && autokicktoggle }
53+
private val timeMinutes by NumberSetting("Minutes", 5, 0, 10, description = "Time minimum in minutes.", unit = "m").withDependency { timeKick && autoKickDropdwon && autokicktoggle }
54+
private val timeSeconds by NumberSetting("Seconds", 0, 0, 60, description = "Time minimum in seconds.", unit = "s").withDependency { timeKick && autoKickDropdwon && autokicktoggle }
5555
private inline val timeReq get() = timeMinutes * 60 + timeSeconds
5656

5757
private val secretKick by BooleanSetting("Check Secrets", default = true, description = "Kicks for secrets").withDependency { autoKickDropdwon && autokicktoggle }

0 commit comments

Comments
 (0)