From bccb7c7c790a30f3642909551420d117b7fa82c0 Mon Sep 17 00:00:00 2001 From: UltraFaceguy Date: Fri, 4 Jun 2021 10:39:14 -0400 Subject: [PATCH] More betterer discord messages --- src/main/java/info/faceland/loot/utils/InventoryUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/faceland/loot/utils/InventoryUtil.java b/src/main/java/info/faceland/loot/utils/InventoryUtil.java index 1bab6fa..bd652b2 100644 --- a/src/main/java/info/faceland/loot/utils/InventoryUtil.java +++ b/src/main/java/info/faceland/loot/utils/InventoryUtil.java @@ -95,8 +95,8 @@ public static void sendToDiscord(Player player, ItemStack item, String format, b content.addDescription(description.getDescription().orElse(null)); } - String itemName = ItemStackExtensionsKt.getDisplayName(finalItem); - sendToDiscord("\\uD83C\\uDF1F " + finalFormat.replace("%player%", + String itemName = ChatColor.stripColor(ItemStackExtensionsKt.getDisplayName(finalItem)); + sendToDiscord("\uD83C\uDF1F " + finalFormat.replace("%player%", player.getName()).replace("%item%", itemName), contents); } catch (Exception e) {