mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
[trunk] fix formatting of sell
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1353 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
ef194e9a81
commit
b971abd151
@ -5,6 +5,7 @@ import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.InventoryWorkaround;
|
||||
import com.earth2me.essentials.ItemDb;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@ -126,6 +127,6 @@ public class Commandsell extends EssentialsCommand
|
||||
InventoryWorkaround.removeItem(user.getInventory(), true, new ItemStack(is.getType(), amount, is.getDurability()));
|
||||
user.updateInventory();
|
||||
user.giveMoney(worth * amount);
|
||||
user.sendMessage("§7Sold for §c$" + (worth * amount) + "§7 (" + amount + " items at $" + worth + " each)");
|
||||
user.sendMessage("§7Sold for §c$" + Util.formatCurrency(worth * amount) + "§7 (" + amount + " items at $" + Util.formatCurrency(worth) + " each)");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user