diff --git a/src/main/java/com/songoda/skyblock/gui/wip/GuiBans.java b/src/main/java/com/songoda/skyblock/gui/wip/GuiBans.java index 6c0616f1..5c98531c 100644 --- a/src/main/java/com/songoda/skyblock/gui/wip/GuiBans.java +++ b/src/main/java/com/songoda/skyblock/gui/wip/GuiBans.java @@ -70,7 +70,7 @@ public class GuiBans extends Gui { if(bans.size() == 0){ setItem(31, CompatibleMaterial.BARRIER.getItem()); } else { - for (int i = 9; i < ((getRows()-2)*9)+18; i++) { // TODO check dynamic dimension! + for (int i = 9; i < ((getRows()-2)*9)+18; i++) { // TODO check dynamic dimension! - Arrows! int current = ((page - 1) * 36) - 18; if (current + i >= bans.size()) { setItem(i, null); @@ -109,7 +109,7 @@ public class GuiBans extends Gui { setButton(i, is, e -> { String playerName = ChatColor.stripColor(is.getItemMeta().getDisplayName()); // TODO Check if it actually works - Bukkit.getServer().dispatchCommand(e.player, "island unban " + playerName); + Bukkit.getServer().dispatchCommand(e.player, "island unban " + playerName); // TODO Command or APIs? }); } } diff --git a/src/main/resources/menus.yml b/src/main/resources/menus.yml index 7b1db7ac..a463be22 100644 --- a/src/main/resources/menus.yml +++ b/src/main/resources/menus.yml @@ -79,7 +79,7 @@ GUI: Empty: Material: BARRIER Position: 31 - DisplayName: "&cBank" + DisplayName: "&cNo transactions" Lore: [] Info: Material: PAINTING @@ -103,12 +103,55 @@ GUI: Material: ARROW Position: 50 Displayname: '&a&lPrevious Page' - Lore: - - '&7 {PLAYERNAME} withdrawn {AMOUNT}' + Lore: [] NextPage: Material: ARROW Position: 54 Displayname: '&a&lNext Page' - Lore: - - '&7 {PLAYERNAME} withdrawn {AMOUNT}' + Lore: [] + Bans: + Title: '&8Island bans' + Exit1: + Material: OAK_FENCE_GATE + Position: 0 + DisplayName: "&cExit" + Lore: + - "&7Exits the Menu" + Exit2: + Material: OAK_FENCE_GATE + Position: 8 + DisplayName: "&cExit" + Lore: + - "&7Exits the Menu" + PrevPage: + Material: ARROW + Position: 50 + Displayname: '&a&lPrevious Page' + Lore: [] + NextPage: + Material: ARROW + Position: 54 + Displayname: '&a&lNext Page' + Lore: [] + Empty: + Material: BARRIER + Position: 31 + Displayname: '&cNo banned users' + Lore: [] + Head: + Displayname: '&a{PLAYERNAME}' + Lore: + - '' + - '&eClick to Unban player!' + Info: + Material: PAINTING + Position: 4 + Displayname: '&bInformations' + Lore: + - '&7Prevent certain players' + - '&7from entering your Island' + - '&7by banning them.' + - '' + - '&eClick to ban a player!' + \ No newline at end of file