Skip to content

Commit

Permalink
Use correct plugin name arg for tab complete
Browse files Browse the repository at this point in the history
  • Loading branch information
MLGPenguin committed Jun 21, 2024
1 parent ea24fbe commit 6a8e68e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ object CommandManager {
private fun BukkitCommandHandler.registerAutoComplete() {
autoCompleter
.registerSuggestion("marketplacePluginSearch") { args, _, _ ->
val searchName = args[0]
if (args.size < 3) return@registerSuggestion listOf<String>()
val searchName = args[2]

if (searchName.length == 2) async { SearchPlugins.search(searchName) }

Expand Down

0 comments on commit 6a8e68e

Please sign in to comment.