-
-
Save test414EFF/fd68829ab058add44941881627b6eeba to your computer and use it in GitHub Desktop.
This is only the relevant method for opening the account selector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void accountSelectorGUI(Player p) { | |
Inventory gui = utility.createGUI(p, "Your Bank Accounts", 9); | |
int checkingSlot = 1; | |
for(String accUUID : accountStorage.getAccountList("player", p.getDisplayName(), "checkingAccounts")) { | |
utility.addItem(gui, checkingSlot, Material.EMERALD, "Checking Account", "§7Balance: §f" + accountStorage.getAccountBalance(accUUID) + ";§7Creation Date: §f" + accountStorage.getAccountDOC(accUUID) + "; ;" + accUUID); | |
checkingSlot++; | |
} | |
int savingsSlot = 5; | |
for(String accUUID : accountStorage.getAccountList("player", p.getDisplayName(), "savingsAccounts")) { | |
utility.addItem(gui, savingsSlot, Material.EMERALD_BLOCK, "Savings Account", "§7Balance: §f" + accountStorage.getAccountBalance(accUUID) + ";§7Creation Date: §f" + accountStorage.getAccountDOC(accUUID) + "; ;" + accUUID); | |
savingsSlot++; | |
} | |
p.openInventory(gui); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment