3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-27 11:20:05 +01:00
Dieser Commit ist enthalten in:
Silent 2023-07-22 23:22:36 -07:00
Ursprung a73c17865c
Commit 7ef5e30694

Datei anzeigen

@ -126,7 +126,7 @@ public class Utils {
Utils.purchase(player, head, amount); Utils.purchase(player, head, amount);
} else if (fe.isRightClick()) { } else if (fe.isRightClick()) {
HeadDB.getInstance().getStorage().getPlayerStorage().removeFavorite(player.getUniqueId(), head.getTexture()); 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); openFavoritesMenu(player);
} }
})); }));
@ -157,7 +157,7 @@ public class Utils {
} else if (e.isRightClick()) { } else if (e.isRightClick()) {
if (player.hasPermission("headdb.favorites")) { if (player.hasPermission("headdb.favorites")) {
HeadDB.getInstance().getStorage().getPlayerStorage().addFavorite(player.getUniqueId(), head.getTexture()); 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 { } else {
HeadDB.getInstance().getLocalization().sendMessage(player, "noAccessFavorites"); HeadDB.getInstance().getLocalization().sendMessage(player, "noAccessFavorites");
} }