update inventory opening

Dieser Commit ist enthalten in:
Silent 2021-06-19 17:25:26 +02:00
Ursprung 267bb78cf3
Commit 1175b7d533

Datei anzeigen

@ -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!"));