ComplexityEU / ComplexUpgradeUI

UpgradeUI Version 2.0
GNU General Public License v3.0
4 stars 1 forks source link

XP Economy Provider - Price doesn't change #15

Closed n00bslayr94 closed 1 year ago

n00bslayr94 commented 1 year ago

https://github.com/ComplexityEU/ComplexUpgradeUI/assets/132199379/1d5fcc27-f348-4700-8ae9-947e025a293e

I've set the config file to use XP, however the pricing doesn't update in-game for XP - it always uses "5".

See below - mending enchant is set to 45, but the video attached shows it costs 5.

# Economy Options
economy:
  # Economy provider to use. Supported options:  "economyapi", "bedrockeconomy" and "xp"
  provider: xp

#List of enchants and their configurable values
#PLEASE NOTE. SOME ENCHANTS ARE NOT ADDED BY POCKETMINE-MP AND AS A RESULT ARE NOT IN THIS PLUGIN.
enchants:
  #The tool for the enchants
  pickaxe:
    #Enchant name
    efficiency:
      #Max level for enchant
      max-level: 1
      # Cost per enchant level. If money is chosen 1 = $1. If XP is chosen 1 = 1 XP level.
      cost: 5
    #Enchant name
    unbreaking:
      #Max level for enchant
      max-level: 1
      # Cost per enchant level. If money is chosen 1 = $1. If XP is chosen 1 = 1 XP level.
      cost: 5
    #Enchant name
    silk_touch:
      #Max level for enchant
      max-level: 1
      # Cost per enchant level. If money is chosen 1 = $1. If XP is chosen 1 = 1 XP level.
      cost: 5
    mending:
      max-level: 1
      cost: 45 
DuoIncure commented 1 year ago

Thanks for the issue!

This has been fixed in the latest commit, you can find the updated phar from a poggit dev build here, or alternatively you can wait until an official release is accepted.