[trunk] cleanup double $

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1356 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-05-06 21:08:58 +00:00
parent c160d9c74d
commit 2efb97013f
3 changed files with 5 additions and 4 deletions

View file

@ -127,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$" + Util.formatCurrency(worth * amount) + "§7 (" + amount + " items at $" + Util.formatCurrency(worth) + " each)");
user.sendMessage("§7Sold for §c" + Util.formatCurrency(worth * amount) + "§7 (" + amount + " items at " + Util.formatCurrency(worth) + " each)");
}
}

View file

@ -4,6 +4,7 @@ import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
import org.bukkit.ChatColor;
@ -41,7 +42,7 @@ public class Commandwhois extends EssentialsCommand
sender.sendMessage(ChatColor.BLUE + " - Location: (" + u.getLocation().getWorld().getName() + ", " + u.getLocation().getBlockX() + ", " + u.getLocation().getBlockY() + ", " + u.getLocation().getBlockZ() + ")");
if (!ess.getConfiguration().getBoolean("disable-eco", false))
{
sender.sendMessage(ChatColor.BLUE + " - Money: $" + u.getMoney());
sender.sendMessage(ChatColor.BLUE + " - Money: " + Util.formatCurrency(u.getMoney()));
}
sender.sendMessage(ChatColor.BLUE + " - Status: " + (u.isAfk() ? "§cAway§f" : "Available"));
sender.sendMessage(ChatColor.BLUE + " - IP Address: " + u.getAddress().getAddress().toString());

View file

@ -49,7 +49,7 @@ public class Commandworth extends EssentialsCommand
user.charge(this);
user.sendMessage("§7Stack of "
+ is.getType().toString().toLowerCase().replace("_", "")
+ " worth §c$" + Util.formatCurrency(worth*amount) + "§7 ("
+ amount + " item(s) at $" + Util.formatCurrency(worth) + " each)");
+ " worth §c" + Util.formatCurrency(worth*amount) + "§7 ("
+ amount + " item(s) at " + Util.formatCurrency(worth) + " each)");
}
}