Deposit Bank Menu

title: "&8Deposit"
# 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:
  deposit-100:
    material: "CHEST"
    amount: 1
    name: "&aYour whole purse"
    lore:
      - ""
      - "&7Current balance: %currency-color%%bank-balance%"
      - "&7Amount to deposit: %currency-color%%deposit-100%"
      - ""
      - "&eClick to deposit coins!"
    click-actions:
      - actions:
          - "[DEPOSIT] 100"
    slot: 11
  deposit-50:
    material: "CHEST"
    amount: 1
    name: "&aHalf your purse"
    lore:
      - ""
      - "&7Current balance: %currency-color%%bank-balance%"
      - "&7Amount to deposit: %currency-color%%deposit-50%"
      - ""
      - "&eClick to deposit coins!"
    click-actions:
      - actions:
          - "[DEPOSIT] 50"
    slot: 13
  deposit-custom:
    material: "SIGN"
    amount: 1
    name: "&aSpecific amount"
    lore:
      - ""
      - "&7Current balance: %currency-color%%bank-balance%"
      - ""
      - "&eClick to deposit coins!"
    click-actions:
      - actions:
          - "[DEPOSIT] 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 deposit."

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

  • [deposit] custom - Will trigger the opening of an input GUI, such as Sign/Anvil/Chat with the purpose of entering a custom amount to be deposited. The action automatically denies the deposit if the bank does not have the required money.

  • [deposit] <percentage> - Will trigger the deposit 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

Placeholder
Description

%currency-name%

The name of the bank's currency (the plural form)

%currency-color%

The color of the bank's currency

%deposit-<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 %deposit-100% in a way, displays the full amount of the bank's balance.

Last updated