nijikokun / iConomy

Economy Java Plugin for hey0's Mod
http://forum.hey0.net/viewtopic.php?id=357
21 stars 5 forks source link

Chest Stores #33

Open redpoptarts opened 13 years ago

redpoptarts commented 13 years ago

I'm not sure if this is possible yet due to server/client inventories, but I have seen other plugin access user's inventories, so it should be do-able.

Rather than using signs for user shops, I think using chests would be more more intuitive and user-friendly. All one needs to do to set up a shop is create two chests, one for selling and one for buying. Any items for sale are placed in the BUY chest so that users can buy directly from it's inventory. An empty SELL chest is created so users can drop their goods into it.

All prices can be adjusted via command line per user store.

A sign placed next to (or in between) these two chests could provide the store_name value for command line editing. When a user clicks the sign, it can either provide price lists or tell them a command to access list pages.

If a user attempts to buy an item that they don't have the money for, it is taken from their inventory and moved back into the chest. If a user sells something that is not sellable, it goes back into their inventory.

nijikokun commented 13 years ago

mSleeper was working on this. If she fails to come through I will most likely work on one.