Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-28 20:00:10 +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());
|
Utils.sendMessage(player, "&cPage number is out of bounds! Max: &e" + getPageAmount());
|
||||||
return AnvilGUI.Response.text("&cOut of bounds!");
|
return AnvilGUI.Response.text("&cOut of bounds!");
|
||||||
}
|
}
|
||||||
Bukkit.getScheduler().runTaskLater(HeadDB.getInstance(), () -> {
|
|
||||||
open(player);
|
|
||||||
selectPage(i - 1);
|
selectPage(i - 1);
|
||||||
}, 40L);
|
return AnvilGUI.Response.openInventory(this.getInventory());
|
||||||
return AnvilGUI.Response.close();
|
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
Utils.sendMessage(player, "&cValue must be a number!");
|
Utils.sendMessage(player, "&cValue must be a number!");
|
||||||
return AnvilGUI.Response.text(Utils.colorize("&cValue must be a number!"));
|
return AnvilGUI.Response.text(Utils.colorize("&cValue must be a number!"));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren