mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Cleanup worth and sell messages
This commit is contained in:
parent
4eef8b5e84
commit
59515aed94
3 changed files with 17 additions and 4 deletions
|
@ -59,7 +59,7 @@ public class Commandsell extends EssentialsCommand
|
|||
}
|
||||
}
|
||||
}
|
||||
if (count > 1 && totalWorth.signum() > 0)
|
||||
if (count != 1)
|
||||
{
|
||||
if (args[0].equalsIgnoreCase("blocks"))
|
||||
{
|
||||
|
@ -84,6 +84,9 @@ public class Commandsell extends EssentialsCommand
|
|||
|
||||
if (amount <= 0)
|
||||
{
|
||||
if (!isBulkSell) {
|
||||
user.sendMessage(_("itemSold", NumberUtil.displayCurrency(BigDecimal.ZERO, ess), BigDecimal.ZERO, is.getType().toString().toLowerCase(Locale.ENGLISH), NumberUtil.displayCurrency(worth, ess)));
|
||||
}
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue