Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-28 03:40:06 +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(), () -> {
|
selectPage(i - 1);
|
||||||
open(player);
|
return AnvilGUI.Response.openInventory(this.getInventory());
|
||||||
selectPage(i - 1);
|
|
||||||
}, 40L);
|
|
||||||
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