aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/commands/tabcomplete/PlayerTabComplete.kt5
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)
}