Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-27 11:20:05 +01:00
update inventory opening
Dieser Commit ist enthalten in:
Ursprung
267bb78cf3
Commit
1175b7d533
@ -261,11 +261,8 @@ public class PagedPane implements InventoryHolder {
|
||||
Utils.sendMessage(player, "&cPage number is out of bounds! Max: &e" + getPageAmount());
|
||||
return AnvilGUI.Response.text("&cOut of bounds!");
|
||||
}
|
||||
Bukkit.getScheduler().runTaskLater(HeadDB.getInstance(), () -> {
|
||||
open(player);
|
||||
selectPage(i - 1);
|
||||
}, 40L);
|
||||
return AnvilGUI.Response.close();
|
||||
selectPage(i - 1);
|
||||
return AnvilGUI.Response.openInventory(this.getInventory());
|
||||
} catch (NumberFormatException nfe) {
|
||||
Utils.sendMessage(player, "&cValue must be a number!");
|
||||
return AnvilGUI.Response.text(Utils.colorize("&cValue must be a number!"));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren