diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-15 23:32:36 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-15 23:32:36 +0100 |
commit | 4dd5800efcba9690259d3c9a51c6564865f07ff8 (patch) | |
tree | e3259bd0130f43dcd587b40be8e2fb18c56bb368 /src/main | |
parent | 7e20caecf45ed273ac6c030a4f2bcc16eec5f1ce (diff) | |
download | skyhanni-4dd5800efcba9690259d3c9a51c6564865f07ff8.tar.gz skyhanni-4dd5800efcba9690259d3c9a51c6564865f07ff8.tar.bz2 skyhanni-4dd5800efcba9690259d3c9a51c6564865f07ff8.zip |
Fixed error message on /pt.
Co-authored-by: nea <nea@nea.moe>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt | 5 |
1 files changed, 4 insertions, 1 deletions
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 f57738f1f..fea58deef 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyCommands.kt @@ -30,7 +30,10 @@ object PartyCommands { } fun transfer(args: Array<String>) { - if (args.isEmpty()) LorenzUtils.sendCommandToServer("pt") + if (args.isEmpty()) { + LorenzUtils.sendCommandToServer("pt") + return + } if (!config.shortCommands) return if (PartyAPI.partyMembers.isEmpty()) return LorenzUtils.sendCommandToServer("party transfer ${args[0]}") |