Blackixx / BossShop

Minecraft Bukkit Plugin | The most player friendly shop plugin
16 stars 16 forks source link

Balance lores/hooking not working with custom menus. #3

Open TimB1087 opened 10 years ago

TimB1087 commented 10 years ago

Short description about the bug/problem: Money and point balance shows on the default configs/menus. When using my custom menu setup, balance lores just show up as %balancepoints% and %balance% in the shop.

What steps will reproduce the problem?

  1. Delete all the pre-built shops and menus.
  2. Create custom menus and shop items.
  3. Add balance lores to item.

What is the expected output? What do you see instead? I expect to see my econ (essentials) and Enjin point balances on the item lore in the menu. Instead, I see %balancepoints% and %balance%

What version of BossShop are you using? V2.1.0

Do you have an error log of what happened? Please paste it at pastie.org! http://pastebin.com/rCRkS31n

Please provide any additional information below. The balance lores work perfectly fine when just using a fresh install of BossShop and leaving the default shops unmodified. I verified that it was hooking into Vault and Enjin Plugin just fine, and was able to buy the items that are in the default included shops. However, as soon as I add my own custom menus, items, etc, everything breaks - BossShop stops recognizing Vault, it stops recognizing Enjin, and the lores for %balance% and %balancepoints% fail to work. I literally backed up my BossShop folder with my custom menus, deleted it, started up my server so BossShop generates a new BossShop folder with default menus, and verified it was working with the default menus. I then shut down my server, deleted the default menus, dropped my custom menus into the folder, started up my server, and it was back to being broken.

I verified that I am using the latest version of Vault(1.4.1) and EMP(Bukkit version, 2.6.8)

It should also be noted that my main BossShop menu has 54 menu items in it. 55 and above cause graphical issues with BossShop, so I assume 54 in the maximum.

Here is my current main menu config. Note that I'm even using the default example text for the balance lores, just to ensure that it was not a formatting error on my behalf. I also tried the lore on multiple menu items to see if it was an issue relating to the InventoryLocation of the item, but they all fail to function.

http://pastebin.com/kN6r8vSv