From f2ea32b994ba80ca8756050977a37a1bde1862ff Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 5 Dec 2022 13:10:35 +0000 Subject: [PATCH] Fixed dumb bug --- .../main/kotlin/com/willfp/ecoshop/commands/CommandSellAll.kt | 2 +- .../kotlin/com/willfp/ecoshop/commands/CommandSellHandall.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellAll.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellAll.kt index e6f610f..bf1b918 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellAll.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellAll.kt @@ -29,7 +29,7 @@ class CommandSellAll(plugin: EcoPlugin) : PluginCommand( val sold = items.values.sell(player) if (sold.size == items.size) { - player.sendMessage("no-sellable") + player.sendMessage(plugin.langYml.getMessage("no-sellable")) } else { for (i in items.keys) { player.inventory.clear(i) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellHandall.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellHandall.kt index 86b1c4c..7461f40 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellHandall.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoshop/commands/CommandSellHandall.kt @@ -35,7 +35,7 @@ class CommandSellHandall(plugin: EcoPlugin) : PluginCommand( val sold = items.values.sell(player) if (sold.size == items.size) { - player.sendMessage("not-sellable") + player.sendMessage(plugin.langYml.getMessage("no-sellable")) } else { for (i in items.keys) { player.inventory.clear(i)