- Added fancy formatting fo the item name in the chat message

- Fixed consle item fomatting
This commit is contained in:
Acrobot 2012-04-19 16:13:42 +02:00
parent 6bcac6fa01
commit 6faa4321df
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public class Items {
public static String getSignName(ItemStack is) {
return is.getType().name()
+ (is.getDurability() > 0 ? ':' + is.getDurability() : "")
+ (is.getDurability() > 0 ? ":" + is.getDurability() : "")
+ (!is.getEnchantments().isEmpty() ? '-' + uEnchantment.encodeEnchantment(is.getEnchantments()) : "");
}

View File

@ -66,7 +66,7 @@ public class Shop {
return;
}
String materialName = stock.getType().name();
String materialName = uSign.capitalizeFirst(stock.getType().name());
if (!isAdminShop() && !hasEnoughStock()) {
int items = stockAmount(stock, durability);
@ -167,7 +167,7 @@ public class Shop {
if (!isAdminShop()) Economy.add(player.getName(), sellPrice);
else Economy.addServer(player.getName(), sellPrice);
String materialName = stock.getType().name();
String materialName = uSign.capitalizeFirst(stock.getType().name());
String formatedBalance = Economy.formatBalance(sellPrice);
if (Config.getBoolean(Property.SHOW_TRANSACTION_INFORMATION_CLIENT)) {