mirror of
https://github.com/5vl/SkyblockRemake.git
synced 2025-05-24 06:47:01 +00:00
.
This commit is contained in:
parent
78f509fdbd
commit
f585f1de19
@ -21,15 +21,18 @@ public class InvClick extends chatcolors implements Listener {
|
||||
public void InventoryClick(InventoryClickEvent e) {
|
||||
Player p = (Player) e.getWhoClicked();
|
||||
if (currentGui.get(p.getUniqueId()).equalsIgnoreCase("bankerMain")) {
|
||||
if (e.getRawSlot() == 13) {
|
||||
if (e.getSlot() == 11) {
|
||||
p.closeInventory();
|
||||
}
|
||||
if (e.getSlot() == 13) {
|
||||
p.openInventory(bankerWithdraw.getGui());
|
||||
p.closeInventory();
|
||||
currentGui.put(p.getUniqueId(), "bankerWithdraw");
|
||||
}
|
||||
e.setCancelled(true);
|
||||
}
|
||||
if (currentGui.get(p.getUniqueId()).equalsIgnoreCase("bankerWithdraw")) {
|
||||
if (e.getRawSlot() == 13) {
|
||||
if (e.getSlot() == 13) {
|
||||
int bankBal;
|
||||
int purseBal;
|
||||
try {
|
||||
|
@ -51,11 +51,11 @@ public class bankerMain extends chatcolors {
|
||||
depositMeta = deposit.getItemMeta();
|
||||
depositMeta.setDisplayName(color("&aDeposit"));
|
||||
depositLore.add(color("&7Total money: &6" + totalBal));
|
||||
withdrawMeta.setLore(depositLore);
|
||||
withdraw.setItemMeta(depositMeta);
|
||||
depositMeta.setLore(depositLore);
|
||||
deposit.setItemMeta(depositMeta);
|
||||
|
||||
// Glass panes
|
||||
glass = new ItemStack(Material.GRAY_STAINED_GLASS_PANE);
|
||||
glass = new ItemStack(Material.LIGHT_GRAY_STAINED_GLASS_PANE);
|
||||
glassMeta = glass.getItemMeta();
|
||||
glassMeta.setDisplayName(" ");
|
||||
glass.setItemMeta(glassMeta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user