Skip to content

Commit

Permalink
More betterer discord messages
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraFaceguy committed Jun 4, 2021
1 parent 4bab27d commit bccb7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/info/faceland/loot/utils/InventoryUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bccb7c7

Please sign in to comment.