[Discontinued] AdminShop [v1.8.2] - Server Shops

LOL - still not working. But never mind, my happiness doesn’t depend on it …and I’m sure you’ve got more important things to do :joy:

Meant to reply to the other issue from @Ekib

Seems to work… Not tested for a long time, but now no errors!

1 Like

I’m a bit confused how to add data values to the shop.

I’m trying to have a sell shop for Lapis Lazuli. I have it set to 32 for 300. When I sell it while having a whole stack in my inventory the remaining 32 get changed to ink sacs because of the minecraft:dye applying to more than one item.
I’ve tried doing minecraft:dye 4 as well as using the id numbers but nothing works, it just doesn’t accept the item at all if I do that.

So you’re trying to use metadata?

As I have said above it doesn’t work for me when I try to apply this to lapis or any other dye
minecraft:log 2 does work but when I do
minecraft:dye 4 doesn’t. No matter what number I put in for the meta I always get rose dye

Okay, I’m checking

Checkout the latest version (v0.7) meta is now fully supported. Now, to use meta just use /setitem :wink: Enjoy.

Hello Hassan,

the meta data are working now. However, when the server is restarted all the signs don’t work anymore and have to be reset completely, ie new signs and new /setitem

EDIT The config file for the admin shop is empty, ie nothing gets saved. Is that intended?

Config should be empty, but the JSON files should be working. I’ll check it right now.

Did it work after deleting all AdminShops? As in, after that, were they saved and loaded successfully?

Update: AdminShops support larger numbers (Over 20 billion $)

After deleting all of them I set some again and they worked. After the next restart they didn’t. The same after I cleared the json files.

EDIT yep they were saved, but obviously not re-loaded on restart

EDIT 2: when I removed admin shops signs they were NOT deleted from the json files

okay, I’ll fix today.

Okay. Delete the JSON files. Then, make a new AdminShop. Restart. Does that AdminShop still work? Use v0.7c

OK - just a mo …

€DIT : Nope, doesn’t work …

Hmm… Did you delete both JSON files? Is it changing when you save/close the game?

Yep, both deleted.

“BuyAdminShop.jason” reading after save: [{“itemAmount”:64,“meta”:-1,“price”:5.0,“itemName”:“minecraft:dirt”}]

I tried both on v 750 and 760

Okay, I’ll run tests locally and search for a fix.

Found the issue. It’s not reading or saving the location. Must be a bug with my LocationAdapter for GSON. I’m checking it.

EDIT: Fixed it, releasing the fix now.

EDIT 2: Enjoy v0.7d all issues fixed.

Yep, working now. Thanks friend :+1:

1 Like