MoneyPouch [1.8-1.19] | Packages with money or XP icon

MoneyPouch [1.8-1.19] | Packages with money or XP -----

Now supporing custom economies!



More error handling
[​IMG]

  • More error handling has been added to help prevent players from losing out due to a configuration error or any unexpected transaction error.
    • Failed transactions will log errors in the console, with enough information for you to reimburse the player (or re-issue a new pouch).
    • Pouches which have invalid economy types will no longer default to Vault, instead they will use an 'Invalid' economy type preventing their use.
    • Custom economy types can no longer override built-in types, or types directly made by hooking into MoneyPouch.
    • Warnings in console have been added to help you locate and fix broken pouches, or custom economy types.
    • Config update: See the comments in the config here for more info and to adjust the behaviour of error handling.
      • Code (YAML):
        error-handling :
          # It is recommended you set the following to 'true' in a production environment
          # The plugin will log should a transaction fail for any reason, allowing you to investigate
          # and manually reward the player yourself
          # The player will be alerted and asked to tell an admin should this event occur regardless if this is disabled
          # You can change this message ('reward-error') at the bottom of the config
          log-failed-transactions
        : true
          # Refund the pouch to the player (if they are online) in the event a transaction failed - this is default
          # to 'false' as this results in a different prize on the second try, and it is unlikely
          # that the transaction will succeed if it had already failed. It is recommended
          # to keep this 'false' and manually investigate when errors occur.
          refund-pouch
        : false
          # Prevent opening pouches which have an invalid economy type assigned to them.
          # The message 'invalid-pouch' will be sent to the player.
          prevent-opening-invalid-pouches
        : true
  • New | /moneypouchadmin command - all commands related to reloading and viewing existing pouches have been relocated here
    • This is to prevent command arguments overriding pouch IDs, all pouches are given using /mp.
  • Fix | LemonMobCoins economy type failing after it is reloaded using plugman (or similar)

[​IMG]
----------, Jan 17, 2021
Resource Information
Author:
----------
Total Downloads: 49,743
First Release: Apr 16, 2016
Last Update: Jul 23, 2021
Category: ---------------
All-Time Rating:
72 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings