diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-04-05 06:57:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:57:35 +0200 |
commit | 6b46e843c22403ace91a11390b862b5b0f04a441 (patch) | |
tree | fa1056be06be6b347c2157fbd1c5b978638f2b3d /src/main/java/at/hannibal2 | |
parent | aa0dd991654ac42e950807ef100dabd3637eb3b6 (diff) | |
download | skyhanni-6b46e843c22403ace91a11390b862b5b0f04a441.tar.gz skyhanni-6b46e843c22403ace91a11390b862b5b0f04a441.tar.bz2 skyhanni-6b46e843c22403ace91a11390b862b5b0f04a441.zip |
Improvement: Add /trade to tab complete commands (#1354)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt index 4be8b51b8..748a73ceb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt @@ -28,6 +28,7 @@ object PlayerTabComplete { enum class PlayerCategory { FRIENDS, ISLAND_PLAYERS, + PARTY, } fun handleTabComplete(command: String): List<String>? { @@ -46,6 +47,8 @@ object PlayerTabComplete { "pv" to listOf(), // NEU's Profile Viewer "shmarkplayer" to listOf(), // SkyHanni's Mark Player + + "trade" to listOf(PlayerCategory.FRIENDS, PlayerCategory.PARTY) ) val ignored = commands[command] ?: return null @@ -62,7 +65,7 @@ object PlayerTabComplete { } } - if (config.party) { + if (config.party && PlayerCategory.PARTY !in ignored) { for (member in PartyAPI.partyMembers) { add(member) } |