From 7ef5e3069429cef438a5bf7b8cc0cdd5a428ce54 Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 22 Jul 2023 23:22:36 -0700 Subject: [PATCH] fix formatting --- src/main/java/tsp/headdb/core/util/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/tsp/headdb/core/util/Utils.java b/src/main/java/tsp/headdb/core/util/Utils.java index d794269..19bd42e 100644 --- a/src/main/java/tsp/headdb/core/util/Utils.java +++ b/src/main/java/tsp/headdb/core/util/Utils.java @@ -126,7 +126,7 @@ public class Utils { Utils.purchase(player, head, amount); } else if (fe.isRightClick()) { HeadDB.getInstance().getStorage().getPlayerStorage().removeFavorite(player.getUniqueId(), head.getTexture()); - HeadDB.getInstance().getLocalization().sendMessage(player, "removedFavorite"); + HeadDB.getInstance().getLocalization().sendMessage(player, "removedFavorite", msg -> msg.replace("%name%", head.getName())); openFavoritesMenu(player); } })); @@ -157,7 +157,7 @@ public class Utils { } else if (e.isRightClick()) { if (player.hasPermission("headdb.favorites")) { HeadDB.getInstance().getStorage().getPlayerStorage().addFavorite(player.getUniqueId(), head.getTexture()); - HeadDB.getInstance().getLocalization().sendMessage(player, "addedFavorite"); + HeadDB.getInstance().getLocalization().sendMessage(player, "addedFavorite", msg -> msg.replace("%name%", head.getName())); } else { HeadDB.getInstance().getLocalization().sendMessage(player, "noAccessFavorites"); }