Fixed dumb bug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user