mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 02:59:06 +02:00
[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:
@@ -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)");
|
||||
}
|
||||
}
|
||||
|
@@ -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());
|
||||
|
@@ -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)");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user