This commit is contained in:
Cuftica 2022-09-24 21:53:43 +02:00
commit e583bb2d59
2 changed files with 7 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -86,6 +86,13 @@ public class GUIUtils {
.build();
menu.setButton(0, 13, new SGButton(itemCreate).withListener(listener -> BungeeUtil.createServer(listener, player, player.getDisplayName())));
for (int i = 0; i < 9 * 4; i++) {
if (menu.getButton(i) == null) {
menu.setButton(i, new SGButton(new ItemBuilder(XMaterial.GRAY_STAINED_GLASS_PANE.parseItem()).name(" ").build()));
}
}
Bukkit.getScheduler().runTask(PSHubCore.getInstance(), () -> player.openInventory(menu.getInventory()));
return;
}