aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-22 18:00:46 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-22 18:00:46 +0200
commiteb64205e8b14c60117af2fb99404eaa8e71a554d (patch)
tree1c9724bab895bc79b80c59c29146b9dbc84a1ef5 /src
parent952b6afe61c374a20f0f417258f0f5d5f1110e55 (diff)
downloadskyhanni-eb64205e8b14c60117af2fb99404eaa8e71a554d.tar.gz
skyhanni-eb64205e8b14c60117af2fb99404eaa8e71a554d.tar.bz2
skyhanni-eb64205e8b14c60117af2fb99404eaa8e71a554d.zip
code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
index 9c8894967..3566d7c36 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -281,8 +281,8 @@ object Commands {
"List persons into the chat SkyHanni thinks are in your party."
) { PartyAPI.listMembers() }
registerCommand(
- "shplaysound",
- "Play the specified sound effect at the given pitch and volume."
+ "shplaysound",
+ "Play the specified sound effect at the given pitch and volume."
) { SoundUtils.command(it) }
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt
index 0b4da88ab..f57738f1f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt
@@ -9,6 +9,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
object PartyCommands {
private val config get() = SkyHanniMod.feature.commands
+
fun kickOffline() {
if (!config.shortCommands) return
if (PartyAPI.partyMembers.isEmpty()) return
@@ -79,4 +80,4 @@ private val otherPartyCommands = listOf(
"Private",
"Warp",
"Settings"
-) \ No newline at end of file
+)