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){
|
if(bans.size() == 0){
|
||||||
setItem(31, CompatibleMaterial.BARRIER.getItem());
|
setItem(31, CompatibleMaterial.BARRIER.getItem());
|
||||||
} else {
|
} 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;
|
int current = ((page - 1) * 36) - 18;
|
||||||
if (current + i >= bans.size()) {
|
if (current + i >= bans.size()) {
|
||||||
setItem(i, null);
|
setItem(i, null);
|
||||||
@ -109,7 +109,7 @@ public class GuiBans extends Gui {
|
|||||||
|
|
||||||
setButton(i, is, e -> {
|
setButton(i, is, e -> {
|
||||||
String playerName = ChatColor.stripColor(is.getItemMeta().getDisplayName()); // TODO Check if it actually works
|
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:
|
Empty:
|
||||||
Material: BARRIER
|
Material: BARRIER
|
||||||
Position: 31
|
Position: 31
|
||||||
DisplayName: "&cBank"
|
DisplayName: "&cNo transactions"
|
||||||
Lore: []
|
Lore: []
|
||||||
Info:
|
Info:
|
||||||
Material: PAINTING
|
Material: PAINTING
|
||||||
@ -103,12 +103,55 @@ GUI:
|
|||||||
Material: ARROW
|
Material: ARROW
|
||||||
Position: 50
|
Position: 50
|
||||||
Displayname: '&a&lPrevious Page'
|
Displayname: '&a&lPrevious Page'
|
||||||
Lore:
|
Lore: []
|
||||||
- '&7 {PLAYERNAME} withdrawn {AMOUNT}'
|
|
||||||
NextPage:
|
NextPage:
|
||||||
Material: ARROW
|
Material: ARROW
|
||||||
Position: 54
|
Position: 54
|
||||||
Displayname: '&a&lNext Page'
|
Displayname: '&a&lNext Page'
|
||||||
Lore:
|
Lore: []
|
||||||
- '&7 {PLAYERNAME} withdrawn {AMOUNT}'
|
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