Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PBoki committed Jul 23, 2023
1 parent a73c178 commit 7ef5e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tsp/headdb/core/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static void openFavoritesMenu(Player player) {
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);
}
}));
Expand Down Expand Up @@ -157,7 +157,7 @@ public static void addHeads(Player player, @Nullable Category category, PagedPan
} 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");
}
Expand Down

0 comments on commit 7ef5e30

Please sign in to comment.