mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-24 17:17:49 +01:00
- Added fancy formatting fo the item name in the chat message
- Fixed consle item fomatting
This commit is contained in:
parent
6bcac6fa01
commit
6faa4321df
@ -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()) : "");
|
||||
}
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user