mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-30 20:11:36 +01:00
Merge branch 'refs/heads/master' into release
This commit is contained in:
commit
99211fd407
@ -154,7 +154,8 @@ public class Commandsell extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Prices for Enchantments
|
//TODO: Prices for Enchantments
|
||||||
final ItemStack ris = new ItemStack(is.getType(), amount, is.getDurability());
|
final ItemStack ris = is.clone();
|
||||||
|
is.setAmount(amount);
|
||||||
InventoryWorkaround.removeItem(user.getInventory(), true, ris);
|
InventoryWorkaround.removeItem(user.getInventory(), true, ris);
|
||||||
user.updateInventory();
|
user.updateInventory();
|
||||||
Trade.log("Command", "Sell", "Item", user.getName(), new Trade(ris, ess), user.getName(), new Trade(worth * amount, ess), user.getLocation(), ess);
|
Trade.log("Command", "Sell", "Item", user.getName(), new Trade(ris, ess), user.getName(), new Trade(worth * amount, ess), user.getLocation(), ess);
|
||||||
|
Loading…
Reference in New Issue
Block a user