The Piggy Bank 1.3.4

a simple custom item based economy

  1. klugemonkey
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    • 1.16
    The Piggy Bank 1.3.4

    Overview:

    The Piggy Bank provides a simple item based economy compatible with Vault in Spigot. Players balances consist of both a bank balance and physical items on-hand. The currency item can be customized in the config.

    Benefits:
    • Easy to use and very little configuration
    • Pay for items with the currency you have in your bank and if not enough pay with the physical currency item on your person.
    Features:
    • Customizable currency items (example provided).
    • Support for Custom Items by with unique display name, lore, enchantments, damage values, unbreakable flag, and custom model data.
    • Players can deposit currency on-hand into their bank account.
    • Players can withdraw currency from their bank account to their inventory.
    • Example defines custom items for Wooden Coin, Stone Coin, Iron Coin and Gold Coin.
    • Example includes custom resource pack for coin textures!
    • Admins can add, remove or set bank balances for players.
    • Vault compatible for online and offline transactions.
    • Support for Towny and Factions!
    • Stores bank balances directly in persistent player data
    • PlaceholderAPI integration for %piggybank_balance%, %piggybank_in_bank%, and %piggybank_on_hand%.
    Commands:
    /bank - check your balance
    /bank balance - check your balance
    /bank deposit - deposit currency in hand
    /bank deposit all - deposit all currency in inventory
    /bank exchange - exchange currency in hand with consolidated currency
    /bank withdraw <amount> - withdraw amount of currency
    /bank withdraw all - withdraw all your currency
    /bank transfer <player> <amount> - transfer to player amount of currency
    /bank add <player> <amount> - add amount of currency to player balance
    /bank remove <player> <amount> - remove amount of currency from player balance
    /bank set <player> <amount> - set player's balance
    /bank baltop - list the top bank balances
    /bank balance <player> - get a player's balance
    /piggybank reload - reloads the configuration
    /balance <player> - get a player's balance
    /baltop - list the top bank balances
    /deposit - deposit currency in hand
    /deposit all - deposit all currency in inventory
    /exchange - exchange currency in hand with consolidated currency
    /pay <player> <amount> - pay an amount of currency to a player
    /withdraw <amount> - withdraw amount of currency
    /withdraw all - withdraw all your currency

    Permissions:

    piggybank.balance - enables using the bank balance command (default: true)
    piggybank.deposit - enables using the bank deposit command (default: true)
    piggybank.exchange - enables using the bank exchange command (default: true)
    piggybank.withdraw - enables using the bank withdraw command (default: true)
    piggybank.transfer - enables using the bank transfer command (default: true)
    piggybank.pay - enables using the bank transfer or bank pay command (default: true)
    piggybank.add - enables using the bank add command (default: op)
    piggybank.remove - enables using the bank remove command (default: op)
    piggybank.set - enables using the bank set command (default: op)
    piggybank.baltop - enables using the bank baltop command (default: op)
    piggybank.balance.others - enables using the bank balance <player> command (default: op)
    piggybank.reload - enables using the bank reload command (default: op)

    Configuration:
    Code (Text):

    #
    # The Piggy Bank
    #
    locale: en_us
    # change decimal_format to #,##0.00
    # if using currencies with decimal values
    decimal_format: '#,##0'
    allow_item_use: false
    balance_maximum: 0
    withdraw_maximum: 186624
    fake_accounts: true
    resource_pack: true
    sql:
      enabled: false
      driver: mysql
      host: 127.0.0.1
      port: 3306
      database: piggybank
      use-ssl: true
      username: piggybank
      password: piggybank
    configVersion: 7
    currency:
      wooden_coin:
        item: minecraft:dead_bush
        name: '&6Wooden Coin'
        lore:
        - '&r&fThis coin is the standard base currency'
        - '&r&9Earn more coins from jobs, quests or trading!'
        enchantments:
        - unbreaking: 10
        - knockback: 0
        damage: 0
        unbreakable: true
        custom_model_data: 1
        flags:
        - HIDE_ATTRIBUTES
        - HIDE_DESTROYS
        - HIDE_ENCHANTS
        - HIDE_PLACED_ON
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
        value: 1.0
      stone_coin:
        item: minecraft:dead_bush
        name: '&7Stone Coin'
        lore:
        - '&r&fThis coin is worth &e2x &fthe base currency'
        - '&r&9Earn more coins from jobs, quests or trading!'
        enchantments:
        - unbreaking: 10
        - knockback: 0
        damage: 0
        unbreakable: true
        custom_model_data: 2
        flags:
        - HIDE_ATTRIBUTES
        - HIDE_DESTROYS
        - HIDE_ENCHANTS
        - HIDE_PLACED_ON
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
        value: 2.0
      iron_coin:
        item: minecraft:dead_bush
        name: '&fIron Coin'
        lore:
        - '&r&fThis is worth &e10x &fthe base currency'
        - '&r&9Earn more coins from jobs, quests or trading!'
        enchantments:
        - unbreaking: 10
        - knockback: 0
        damage: 0
        unbreakable: true
        custom_model_data: 3
        flags:
        - HIDE_ATTRIBUTES
        - HIDE_DESTROYS
        - HIDE_ENCHANTS
        - HIDE_PLACED_ON
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
        value: 10.0
      gold_coin:
        item: minecraft:dead_bush
        name: '&eGold Coin'
        lore:
        - '&r&fThis is worth &e25x &fthe base currency'
        - '&r&9Earn more coins from jobs, quests or trading!'
        enchantments:
        - unbreaking: 10
        - knockback: 0
        damage: 0
        unbreakable: true
        custom_model_data: 4
        flags:
        - HIDE_ATTRIBUTES
        - HIDE_DESTROYS
        - HIDE_ENCHANTS
        - HIDE_PLACED_ON
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
        value: 25.0
     

    Known Issues:
    Players that do /withdraw all on a large bank balance might cause lag.

    Terms of Service:
    The plugin is provided AS-IS.

    Disclaimer:
    This plugin currently only supports versions 1.14+. It uses NMS methods so features will break if used with other versions of Minecraft than intended.

    [​IMG]
    It takes a lot of tasty coffee to keep cranking out quality code.
    Please donate if you like my plugins...
    GabyTM likes this.

Recent Updates

  1. Bug Fixes and Written Book support
  2. Support for 1.16.4
  3. Bug Fix

Recent Reviews

  1. MrSmartyMcFarty
    MrSmartyMcFarty
    4/5,
    Version: 1.3.4
    We are using this on a budding SMP server, but there is one major flaw. I can't figure out how to get a give command for the items in our currency. I'm editing the loot tables for mobs to allow them to drop coins but because I can' see all the nbt data, the coins will not work with the system. I would rate 5 stars if you guys would post any custom tags or give a format of a give command that would work with placeholder names.
  2. TheNylox94
    TheNylox94
    1/5,
    Version: 1.3.4
    I used this plugin for 3 months. At the first start of the server the plugin worked great and without problems (except for money transaction that dont give you the item but virtual money). After 2 months with a big playerbase and using Towny the plugin started literrally kill the server for each hook up on it. By doing simple commands like /balance or /t to check your town balance it freeze the server (4-5 seconds to get the output). Not recomended for high-playerbase server. Also when changed the eco plugin PiggyBank deleted all the gold_ingots from every inventory without any reason.
  3. N.Robson
    N.Robson
    5/5,
    Version: 1.3.4
    Absolutely Stellar plugin. Once I figured out that the values needed '.0' at the end of the numbers everything worked flawlessly. Would love to see a way the bank can be kept physical instead of the currency disappearing into the ether and then can be pulled out at any time
  4. afrojack10
    afrojack10
    5/5,
    Version: 1.3.4
    Any chance of adding a command to withdraw or deposit money from all players' accounts at once?
  5. virgili0
    virgili0
    5/5,
    Version: 1.3.2
    Good plugin! How do you set up the resource pack ?
    1. klugemonkey
      Author's Response
      Resource example is put in the plugins folder unless the config option is disabled. You will need to setup if you want players to download automatically in your server.properties and move it to the spigot folder.
  6. xBACONATORx
    xBACONATORx
    5/5,
    Version: 1.3
    Really good plugin pls add more versions supported tho
    Plsplsplsplsplsplsplsplspls
    1. klugemonkey
      Author's Response
      It's designed around 1.14.x +, can't be backported to earlier Spigot versions.
  7. frank42
    frank42
    5/5,
    Version: 1.3-b3
    Please update 1.16.2
    this plugin is very good for servers that base their economy on custom items
  8. lryanle
    lryanle
    5/5,
    Version: 1.3-b3
    I love the plugin, but I can't seem to find out how to get players to see the custom coin textures. Tips would be appreciated!
  9. NickJackob
    NickJackob
    3/5,
    Version: 1.2.7
    I love this Idea, but i have a prioblem.

    I have a 1.15.2 Paper Spigot server, but when i try to use "deposit" command, the chat show me "You are not holding any coin".
  10. TheCaptain_420
    TheCaptain_420
    5/5,
    Version: 1.2.2
    Great Support for one config problem I had and plugin serves our exact needs for an item-based in game obtainable economy to allow us to use economy based plugins