Config - LMBishop/MoneyPouch GitHub Wiki

The default configuration can be found here.

Jump to section

Structure

Valid fields for each pouch

Field Required Notes Minecraft Version Example
name Supports colour. - Jump
item Full list of supported items here (#item-return)
lore Supports colour. 1.8+ Jump
enchantments For 1.13+, you must use the namespaced enchantment name (see example) in the format "{namespace}:{name}:{level}". For pre-1.13, you must use the spigot name (list here) in the format "{name}:{level}". 1.8+ Jump
itemflags Full list of supported itemflags here. 1.8+ Jump
unbreakable - 1.13+ Jump
attributemodifiers The UUID should always be specified otherwise the server will randomly generate one on each restart causing items already existing in the world to not be recognised by the plugin. Full list of attributes here and operations here. 1.13+ Jump
custommodeldata - 1.14+ Jump
pricerange.from Lowest bound for potential prize. -
pricerange.to Highest bound for potential prize. -
options.economytype Economy type for prize. Valid economy types here -
options.permission-required Either "true" or "false", the permission will be "moneypouch.pouches.[pouch-id]" -

Examples

name (return)

  pouch-id:
    name: "&2&lSuper Cool Name"
    ...

item (return)

  pouch-id:
    item: "WHEAT"
    ...

lore (return)

  pouch-id:
    lore:
     - "Line 1"
     - "Line 2"
    ...

enchantments (return)

  pouch-id:
                  # (pre-1.13) USE SPIGOT NAMES -> format "{enchantment}:{level}" -> https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
    enchantments: # (1.13+) USE VANILLA NAMES -> namespace for vanilla enchantments is "minecraft" -> format "{namespace}:{enchantment}:{level}"
      - "minecraft:infinity:1"
    ...

itemflags (return)

  pouch-id:
    itemflags:
     - "HIDE_ATTRIBUTES"
    ...

unbreakable (return)

  pouch-id:
    unbreakable: true
    ...

attributemodifiers (return)

  pouch-id:
    attributemodifiers:
      - attribute: GENERIC_MOVEMENT_SPEED
        modifier:
          uuid: "49dc07dc-bfdb-4dc7-85d3-66ef52b51858"
          name: "generic.movementSpeed"
          operation: ADD_NUMBER
          amount: 0.03
          equipmentslot: HAND
      - attribute: GENERIC_MOVEMENT_SPEED
        modifier:
          uuid: "e22513cf-b15f-4443-9e2f-103c0ff9731b"
          name: "generic.movementSpeed"
          operation: ADD_NUMBER
          amount: 0.01
          equipmentslot: OFF_HAND
    ...

custommodeldata (return)

  pouch-id:
    custommodeldata: 12345
    ...

Economies

MoneyPouch explicitly supports three economies as of now:

MoneyPouch also supports the creation of custom economies, see:

To view which economy a specific pouch is using, run /mpa list in-game. If an pouch is listed as 'Invalid', then you have specified an incorrect economy in for the pouch in the config.

The prefix and suffix of the economy is shown in square brackets in the format [prefix/suffix].

XP (xp)

Example Pouch Configuration

xp-1:
  name: "&2&lTier I XP Pouch &r&7(Right Click)"
  item: "ENDER_CHEST"
  pricerange:
    from: 10
    to: 100
  options:
    economytype: "xp"
  lore:
    - "&7Open this pouch to receive experience!"

Prefix / Suffix

The configuration key for XP is xp, used to configure prefixes and suffixes.

economy:
  ...
  xp:
    prefix: ""
    suffix: " XP"

Vault (vault)

vault-1:
  name: "&2&lTier I Money Pouch &r&7(Right Click)"
  item: "ENDER_CHEST"
  pricerange:
    from: 1000
    to: 10000
  options:
    economytype: "vault"
  lore:
    - "&7Open this pouch to receive money!"

Prefix / Suffix

The configuration key for Vault is vault, used to configure prefixes and suffixes.

economy:
  ...
  vault:
    prefix: "$"
    suffix: ""

LemonMobCoins (lemonmobcoins)

lemonmobcoins-1:
  name: "&2&lTier I LemonMobCoins Pouch &r&7(Right Click)"
  item: "ENDER_CHEST"
  pricerange:
    from: 100
    to: 1000
  options:
    economytype: "lemonmobcoins"
  lore:
    - "&7Open this pouch to receive mob coins!"

Prefix / Suffix

The configuration key for LemonMobCoins is lemonmobcoins, used to configure prefixes and suffixes.

economy:
  ...
  lemonmobcoins:
    prefix: ""
    suffix: " Mob Coins"