From af6b7a111a94b3d90fbb50a0a95f4a27ea62f2ce Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 8 Aug 2023 21:19:14 +0100 Subject: [PATCH] Fixed tabcompletion --- .../main/kotlin/com/willfp/ecoquests/commands/CommandReset.kt | 2 +- .../main/kotlin/com/willfp/ecoquests/commands/CommandStart.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandReset.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandReset.kt index 9ee61a7..7185b47 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandReset.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandReset.kt @@ -43,7 +43,7 @@ class CommandReset(plugin: EcoPlugin) : PluginCommand( if (args.size == 2) { StringUtil.copyPartialMatches( args[1], - Quests.values().map { it.name }, + Quests.values().map { it.id }, completions ) } diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandStart.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandStart.kt index 5b8c6cb..c37e18e 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandStart.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoquests/commands/CommandStart.kt @@ -48,7 +48,7 @@ class CommandStart(plugin: EcoPlugin) : PluginCommand( if (args.size == 2) { StringUtil.copyPartialMatches( args[1], - Quests.values().map { it.name }, + Quests.values().map { it.id }, completions ) }