From e27077dd718fe2eab0730c549fa3c8e62f34b5d2 Mon Sep 17 00:00:00 2001 From: _OfTeN_ Date: Sat, 29 Oct 2022 15:49:50 +0300 Subject: [PATCH] Hardest fix in my life --- .../src/main/kotlin/com/willfp/ecojobs/commands/CommandJoin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJoin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJoin.kt index e059ab0..cee1ca3 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJoin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecojobs/commands/CommandJoin.kt @@ -53,7 +53,7 @@ class CommandJoin(plugin: EcoPlugin) : Subcommand(plugin, "join", "ecojobs.comma if (args.size == 1) { StringUtil.copyPartialMatches( - args[1], + args[0], Jobs.values().filter { sender.hasJob(it) }.map { it.id }, completions )