mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-05 08:14:37 +00: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:
parent
c160d9c74d
commit
2efb97013f
|
@ -127,6 +127,6 @@ public class Commandsell extends EssentialsCommand
|
||||||
InventoryWorkaround.removeItem(user.getInventory(), true, new ItemStack(is.getType(), amount, is.getDurability()));
|
InventoryWorkaround.removeItem(user.getInventory(), true, new ItemStack(is.getType(), amount, is.getDurability()));
|
||||||
user.updateInventory();
|
user.updateInventory();
|
||||||
user.giveMoney(worth * amount);
|
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.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
|
import com.earth2me.essentials.Util;
|
||||||
import org.bukkit.ChatColor;
|
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() + ")");
|
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))
|
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 + " - Status: " + (u.isAfk() ? "§cAway§f" : "Available"));
|
||||||
sender.sendMessage(ChatColor.BLUE + " - IP Address: " + u.getAddress().getAddress().toString());
|
sender.sendMessage(ChatColor.BLUE + " - IP Address: " + u.getAddress().getAddress().toString());
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class Commandworth extends EssentialsCommand
|
||||||
user.charge(this);
|
user.charge(this);
|
||||||
user.sendMessage("§7Stack of "
|
user.sendMessage("§7Stack of "
|
||||||
+ is.getType().toString().toLowerCase().replace("_", "")
|
+ is.getType().toString().toLowerCase().replace("_", "")
|
||||||
+ " worth §c$" + Util.formatCurrency(worth*amount) + "§7 ("
|
+ " worth §c" + Util.formatCurrency(worth*amount) + "§7 ("
|
||||||
+ amount + " item(s) at $" + Util.formatCurrency(worth) + " each)");
|
+ amount + " item(s) at " + Util.formatCurrency(worth) + " each)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue