LMBishop / MoneyPouch

MoneyPouch plugin for Spigot, which adds pouches containing random amounts of money.
GNU General Public License v3.0
7 stars 14 forks source link

new economyvariants buggy because of same item? #10

Closed CloudeLecaw closed 3 years ago

CloudeLecaw commented 3 years ago

i designted a test item

    karottenkiste-1:
      name: "&6&lEine echte Karottenkiste &r&7(Rechtsklick)"
      item: "CHEST"
      pricerange:
        from: 2
        to: 5
      options:
        economytype: "karottenkiste.yml"
        permission-required: true      # requires permission "moneypouch.pouches.karottenkiste-1"
      lore:
        - "&7Öffne diese Kiste, um Karotten zu erhalten!"
economy:
  xp:
    prefix: ""
    suffix: " XP"
  vault:
    prefix: "$"
    suffix: ""
  lemonmobcoins:
    prefix: ""
    suffix: " Mobmünzen"
  karottenkiste.yml:
    prefix: ""
    suffix: " Möhren"

the custom file i called karottenkiste,yml and putted it into the new custom ecoomy folder.. Snag_a56237f

# This is an example of a custom economy
# The expected behaviour is for this to be a pouch containing diamonds, rather than money,
# however you can use this feature to make this plugin compatible with any economy plugin,
# as long as there is a command to give money.
#
# The name of this file is the id of the economy, and must be alphanumeric with no spaces and unique
# The command below will be executed when a player opens a pouch of this economy, replace %player% with the player
# and %amount% with the amount
transaction-prize-command: "cmi give %player% carrot %prize%"

# You can configure the prefixes/suffixes the normal way in the main config

little side issue: (in the example yml it sais %amount% in the command %prize% ... so one seems to be wrong here)


server was reststarted

now instead of getting some carrots i got money,, like the Moneybox - that has a normal chest as item too....

So i Asume this is a bug.. or the whole new feature does not work...?

Snag_a4de2a5

Snag_a4f9045

Snag_a4ff96f

LMBishop commented 3 years ago

This is because you left the .yml extension in your config.yml. Remove it and it should recognise your new economy type.

Get Outlookhttps://aka.ms/qtex0l for iOS


From: CloudeLecaw notifications@github.com Sent: Saturday, January 16, 2021 8:01:06 AM To: LMBishop/MoneyPouch MoneyPouch@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [LMBishop/MoneyPouch] new economyvariants buggy because of same item? (#10)

i designted a test item

karottenkiste-1:

  name: "&6&lEine echte Karottenkiste &r&7(Rechtsklick)"

  item: "CHEST"

  pricerange:

    from: 2

    to: 5

  options:

    economytype: "karottenkiste.yml"

    permission-required: true      # requires permission "moneypouch.pouches.karottenkiste-1"

  lore:

    - "&7Öffne diese Kiste, um Karotten zu erhalten!"

economy:

xp:

prefix: ""

suffix: " XP"

vault:

prefix: "$"

suffix: ""

lemonmobcoins:

prefix: ""

suffix: " Mobmünzen"

karottenkiste.yml:

prefix: ""

suffix: " Möhren"

the custom file i called karottenkiste,yml and putted it into the new custom ecoomy folder..

This is an example of a custom economy

The expected behaviour is for this to be a pouch containing diamonds, rather than money,

however you can use this feature to make this plugin compatible with any economy plugin,

as long as there is a command to give money.

#

The name of this file is the id of the economy, and must be alphanumeric with no spaces and unique

The command below will be executed when a player opens a pouch of this economy, replace %player% with the player

and %amount% with the amount

transaction-prize-command: "cmi give %player% carrot %prize%"

You can configure the prefixes/suffixes the normal way in the main config

server was reststarted

now instead of getting some carrots i get money aggain,,, like the Moneybox - that has a normal chest as item too....

So i Asume this is a bug..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/LMBishop/MoneyPouch/issues/10, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJ3UKLCKHATPAIWGTVUIZ3S2FBUFANCNFSM4WFCIAGA.

LMBishop commented 3 years ago

see https://github.com/LMBishop/MoneyPouch/wiki/Custom-Economy-Types