AShops
Version 2.3 is now available!
AShops allows players to sell and buy items with a chest. Unlike many other shop plugins, it doesn't use signs to represent a shop offer. Instead, it uses chest inventories and item descriptions and thereby makes possible to sell or buy (or both) items of different types using only a single chest. It means less chests and time spent on creating shops. Using description as an offer details source makes shopping also more friendly than reading a raw text from a sign, and by representing an offer as a real item, not only it is easier to find what you need, but it also allows you to sell/buy the exact item you have in your inventory, with all data it contains.
(prepared by Lambert from Bosnia and Herzegovina)
What's new in 2.0?
- New shop interface! You don't have to use commands anymore. (see the next section for more info)
- Transaction notifications work even when a shop owner is offline.
- + old features: income taxes, shops limits, minimal price limits, server shop account.
How to use the new interface?
- To create a new shop you have to place a chest and attach a sign to it or above it. For a player shop set first line to :as:, for a server shop: :ass:.
- To manage your shop (add offer, open/close it, remove it) shift-right-click on the sign and use menu icons. Read icon descriptions for more info on manager options.
- To sell/buy items from other players' shops left click on a shop sign and then on an item you want to buy/sell. Read icons' descriptions for more info on trade options.
- To load/collect items from/to your shop left click on a shop sign and then on an offer's icon. If you manage other players' shops or server shops, you will have to use a right mouse button to manage an offer.
- You still can use commands to create and manage shops. Use /ashops command to list all available commands.
How to install this plugin?
- Place AShops.jar file in the /plugins/ folder.
- Set database to MySQL in the bukkit.yml file in a server main directory.
database: username: userName isolation: SERIALIZABLE driver: com.mysql.jdbc.Driver password: databasePassword url: jdbc:mysql://hostName/databaseName
- Make sure you set the following properties to the correct values: username, password, url.
Permissions
- ashops.operator - a set of permissions for a server operator.
- ashops.manager - allows to: create a new player shop for other players.
- ashops.player - a set of permissions for a player.
- ashops.servershop - allows to: create a server shop.
- ashops.playershop - allows to: create a player shop.
- ashops.buy - allows to: buy items from shops; buy items in own shops if a player has also permission to create one.
- ashops.sell - allows to: sell items to shops; sell items in own shops if a player has also permission to create one.
- ashops.free - allows to: create player shops for free.
- ashops.unlimited - allows to: create create any number of player shops.
- ashops.anyitem - allows to: sell or buy any item.
- ashops.anyprice - allows to: sell or buy items for any price.
To the Users of previous versions
AShops 2.0 is not backward compatible. We changed a database system to more reliable one and now we have to use other structure of tables. AShops doesn't support a flat files storage system anymore - now it works only with MySQL databases and, hopefully, it will support SQLite soon. All features that used WorldEdit will be released as a separate file.
If i replace my existing (default) bukkit driver database with a MYSQL database , will i lose any data from any plugin? I'm not sure if there's data stored in it.. How can i tell?
@iBlueBossa
Yes, it's possible to remove offer from ashop, but version 2.0 and 2.1 have icons descriptions problems and you can be confused first time. Just open your shop, left click on the offer you want do remove, and offer menu will appear. Click on second icon to collect all itemst from this offer, and after that click on last icon (lava bucket) to remove offer.
@uvbeenzaned
PM to _Austin, because he is developer of this plugin - it will be much faster than writing here. But he is really busy now and you may wait some time for the answer.
@krisukun
Can that be done in 2.1 (1.6.2) or only the newer versions?
Hello! I run a plugin called MagicChest that sorts every item in any inventory automatically on open and I would like to know if you have a way in your plugin for me to check if the open inventory is owned by your plugin or if you could add a simple API with something like isAshopsInventory(Inventory i) publicly. I would totally appreciate it. I am trying to work with as many authors as possible to make my plugin ignore other inventory plugins. I know I could just use the getTitle() of an inventory but to me it seems not reliable enough and some inventories may have a title with a name like the ones checked for so I am trying to avoid that. Thanks once again!
@LtNachos
Bad news ;/ But I will ask Austin for commands /acopy and /apaste, and for /arepair again - if it's still neccesary.
@adamtank8898
It's impossible due to bukkit API limitations + it will take too many time to code this feature.
@iBlueBossa
It's possible by left click on your offer, then you have new ashop menu with: Load items, collect items and remove offer. To remove offer, just click last icon with lava bucket, but before you must collect all items from this offer.
Is there a way to remove an item in a shop without having to destroy a shop and start over?
great mod but how would one get rid of a double chest with 2 shop signs on it?
@krisukun
Unfortunately /arepair is no longer a command i'll have to set them up manually
i didnt knoow were to send this so i wanted to let you know about a glitch, you can shift click stuff out, i moderate a server and was hoping it may be getting fixed or if theres a patch for it
@LtNachos
It's probably not possible at this moment, but I have one idea, but I'm not sure if this will work - I currently don't have MySQL database and I can't check this by myself.
1. Check if command /arepair still exist. If yes, go to next step. If not, it's impossible to copy shop at this moment. 2. Copy your chest from aShop by WorldEdit plugin - select this chest by wand and type copy command. 3. Paste your chest somewhere you want by paste command. 4. Put new sign on it with :as: string. 5. Type /arepair command and click on the sign or chest. 6. Check if this works.
It's probably only one method that may work.
Is there a way to quickly duplicate a shop instead of going through the setup again i'm making an adventure type server with shops to sell items collected throughout and need to copy the shop to each location is this possible?
@crazydred
You don't need to use commands anymore, even for shop creation. Just put sign on the chest, and type on it :as:
If you would like to use commands instead of shop interface, just type command and right click on Sign, not Chest. When you Right click on chest nothing will happen.
/edit Thanks for 9000+ downloads! :D Waiting for 10000 and more!
hey! great plugin
i have a few questions: when I try to use /ashop name, how do I select a chest? I try to right click and the plugin returns "Action Aborted"
Also parameters defined in the config.yml seem to have no effect in-game..
@rockdude3512
If you don't have any MySQL database, you can't use this plugin. You can always buy access to one, look for some companies that offers this type of service.
@krisukun I have a database section in my bukkit.yml if thats what your asking, and i did fill in my info in it as followed from the instructions, as for the phpmyadmin, my server is a .zapto.org domain from no-ip, can you tell me how to manage my phpmyadmin from this point? sorry, i'm not very experienced with this stuff yet. Thanks for your co-operation -rock
@rockdude3512
There is good question to you... Do you have any Mysql database? Or you only copied settings from "How to install this plugin" section?
About PhpMyAdmin, it is web interface where you can manage your Mysql database. If you have Mysql on your server, probably you can login by adress like this: YourAdressHere.domain/phpmyadmin/
It's also possible to manage databases by ssh or by terminal using commands, but it's hard.
@krisukun I have everything good up to the phpMyAdmin Thing... is this a file or something? Please help! :(
@mindcat
Thank you, but We need to wait for austin to compile new version and upload it on bukkit dev.
@smartienbb
Easy... Don't spam with "!!!".
To @smartienbb and anynone, who have this problem:
- Please check, if you have any economy plugin in your server (for example: CraftConomy, BoseConomy, MineConomy, Essentials or other). Vault isn't only one requied plugin for ashops. If yes and economy plugin works, go for next step. If not, install one of them and try again (note: essentials has builtin economy, so you don't have to install anything else, but you can try another one for tests. If you have Craft Conomy, you must do simple plugin configuration first by commands before first use).
- Check your mysql config in bukkit.yml, if everything is ok, go to phpMyAdmin and find ashops tables, if everything is here, go to the next step. If not, something is wrong with your mysql connection. You can't leave default bukkit settings here, because this plugin will not work with SQLite.
- If still you can't get this work, please post your spigot/bukkit/mcpc+ build numer, version of the game (1.6.4, 1.6.2 etc) and plugins list. If you have any error code, post it too.
@rockdude3512
I get the same problem nothing happens!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! The chest and signs doesn't even change!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I get the same problem as rockdude3512 I do the command but nothing happens!!!