mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-10 17:58:03 +01:00
Progression with bug gui
This commit is contained in:
parent
9af318ff58
commit
1338dc8c93
@ -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?
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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!'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user