From 17da1e8e37a4cfa3fa40e2983b84d0a41320bf9a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 3 Oct 2021 14:39:05 +0100 Subject: [PATCH] Fixed weird code --- .../main/kotlin/com/willfp/ecoskills/commands/CommandReset.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandReset.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandReset.kt index ecdee00..d6f13fc 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandReset.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandReset.kt @@ -57,7 +57,7 @@ class CommandReset(plugin: EcoPlugin) : if (args.size == 1) { StringUtil.copyPartialMatches( args[0], - Bukkit.getOnlinePlayers().map { player -> player.name }.toCollection(ArrayList()), + Bukkit.getOnlinePlayers().map { player -> player.name }.toMutableList(), completions ) return@TabCompleteHandler completions