Skip to content

Commit 786037a

Browse files
committed
1 parent 54db84d commit 786037a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/SimpleShopManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,11 @@ public void sendShopInfo(@NotNull Player p, @NotNull Shop shop) {
11891189
chatSheetPrinter.printLine(plugin.text().of(p, "menu.shop-information").forLocale());
11901190
chatSheetPrinter.printLine(plugin.text().of(p, "menu.owner", shop.ownerName()).forLocale());
11911191
// Enabled
1192-
plugin.getQuickChat().send(p, plugin.getQuickChat().getItemHologramChat(shop, items, p, ChatColor.DARK_PURPLE + plugin.text().of(p, "tableformat.left_begin").forLocale() + plugin.text().of(p, "menu.item", MsgUtil.convertItemStackToTranslateText(shop.getItem().getType())).forLocale() + " "));
1192+
if (plugin.getConfiguration().getBoolean("force-use-item-original-name") || !items.hasItemMeta() || !items.getItemMeta().hasDisplayName()) {
1193+
plugin.getQuickChat().send(p, plugin.getQuickChat().getItemHologramChat(shop, items, p, ChatColor.DARK_PURPLE + plugin.text().of(p, "tableformat.left_begin").forLocale() + plugin.text().of(p, "menu.item", MsgUtil.convertItemStackToTranslateText(shop.getItem().getType())).forLocale() + " "));
1194+
} else {
1195+
plugin.getQuickChat().send(p, plugin.getQuickChat().getItemHologramChat(shop, items, p, ChatColor.DARK_PURPLE + plugin.text().of(p, "tableformat.left_begin").forLocale() + plugin.text().of(p, "menu.item", Util.getItemStackName(shop.getItem())).forLocale() + " "));
1196+
}
11931197
if (Util.isTool(items.getType())) {
11941198
chatSheetPrinter.printLine(
11951199
plugin.text().of(p, "menu.damage-percent-remaining", Util.getToolPercentage(items)).forLocale());

0 commit comments

Comments
 (0)