Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-26 02:50:07 +01:00
refresh to current page of favorites
Dieser Commit ist enthalten in:
Ursprung
d897b92e3a
Commit
30d6635547
@ -178,7 +178,7 @@ public final class MenuSetup {
|
|||||||
// Update favorites after removing the head
|
// Update favorites after removing the head
|
||||||
HeadAPI.findFavoriteHeads(player.getUniqueId(), player.hasPermission("headdb.admin")).thenAcceptAsync(updated -> {
|
HeadAPI.findFavoriteHeads(player.getUniqueId(), player.hasPermission("headdb.admin")).thenAcceptAsync(updated -> {
|
||||||
if (!updated.isEmpty()) {
|
if (!updated.isEmpty()) {
|
||||||
favorites(player, page); // Refresh the GUI
|
favorites(player, favoritesGui.getCurrentPage()); // Refresh the GUI
|
||||||
} else {
|
} else {
|
||||||
mainGui.open(player);
|
mainGui.open(player);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren