Withdraw Bank Menu
title: "&8Withdraw"
# Possible values:
# "CHEST_1_ROW", "CHEST_2_ROW", "CHEST_3_ROW", "CHEST_4_ROW", "CHEST_5_ROW", "CHEST_6_ROW", "DISPENSER", "HOPPER"
inventory-type: "CHEST_4_ROW"
background-item:
material: "STAINED_GLASS_PANE:7"
amount: 1
items:
withdraw-100:
material: "DISPENSER"
amount: 1
name: "&aYour whole purse"
lore:
- ""
- "&7Current balance: %currency-color%%bank-balance%"
- "&7Amount to withdraw: %currency-color%%withdraw-100%"
- ""
- "&eClick to withdraw coins!"
click-actions:
- actions:
- "[WITHDRAW] 100"
slot: 11
withdraw-50:
material: "DISPENSER"
amount: 1
name: "&aHalf your purse"
lore:
- ""
- "&7Current balance: %currency-color%%bank-balance%"
- "&7Amount to withdraw: %currency-color%%withdraw-50%"
- ""
- "&eClick to withdraw coins!"
click-actions:
- actions:
- "[WITHDRAW] 50"
slot: 13
withdraw-custom:
material: "SIGN"
amount: 1
name: "&aSpecific amount"
lore:
- ""
- "&7Current balance: %currency-color%%bank-balance%"
- ""
- "&eClick to withdraw coins!"
click-actions:
- actions:
- "[WITHDRAW] custom"
slot: 15
go-back:
material: "ARROW"
amount: 1
name: "&cGo back"
lore:
- ""
- "&7Click to go back"
- "&7to your bank."
click-actions:
- actions:
- "[GO_BACK]"
slot: 31
input:
# What input method should be used?
# Options: sign, anvil, chat
#
# If your option is not available, the input will try to fall back to the next available option.
input-type: "sign"
# When chat input is used the player has 20 seconds to respond.
# If the player does not respond in time, the input will be considered invalid.
# The following message will be sent.
chat-took-too-long: "&cYou took too long to enter an input."
# For sign input, these would be the last three lines of the sign.
# For anvil input, these would be the lore of the item.
# For chat input, these would be the messages sent to the player.
lines:
- "^^^^^^^^^^^^^^^^"
- "Enter the amount"
- "to withdraw."
Custom Actions
Besides the actions defined inside Actions this config file allows for the following custom ones:
[go_back] - This action simply returns the player to the main bank menu
[withdraw] custom - Will trigger the opening of an input GUI, such as
Sign/Anvil/Chatwith the purpose of entering a custom amount to be withdrawn. The action automatically denies the withdrawal if the bank does not have the required money.[withdraw] <percentage> - Will trigger the withdrawal of the said <percentage> from the bank's balance to the player. The percentage should be just a decimal number between 1 and 100, no need to specify the % symbol.
Custom Placeholders
%currency-name%
The name of the bank's currency (the plural form)
%currency-color%
The color of the bank's currency
%withdraw-<percentage>%
Displays how much <percentage> of the bank's balance means. The <percentage> should be a decimal number between 1 and 100, no need to specify the % symbol.
%bank-balance%
Equivalent to %withdraw-100% in a way, displays the full amount of the bank's balance.
Last updated