From 6b46e843c22403ace91a11390b862b5b0f04a441 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 5 Apr 2024 06:57:35 +1100 Subject: Improvement: Add /trade to tab complete commands (#1354) --- .../skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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? { @@ -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) } -- cgit