Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-26 19:02:39 +01:00
fix formatting
Dieser Commit ist enthalten in:
Ursprung
a73c17865c
Commit
7ef5e30694
@ -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");
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren