Fixed dumb bug

This commit is contained in:
Auxilor
2022-12-05 13:10:35 +00:00
parent a19a90110a
commit f2ea32b994
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)