WebAuction
WebAuction - Website based item market [1597]
Requires: An economy plugin (iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy, eWallet, EconXP)
Requires: Vault
Requires: Web server running PHP 5.2+
Download Latest .jar:
WebAuction.jar v0.6.4 - last change 20th Jan 2012
Download Latest Web Folder:
WebInterface.zip v0.6.4 - last change 22th Jan 2012
Download Latest Development .jar:
WebAuction.jar - last change 9th Feb 2012
Download Latest Development Web Folder:
WebInterface.zip - last change 9th Feb 2012
Development Server
If you want to see a demonstration of a working (mostly) development version of this plugin, I am currently running a small server with it (not 24/7). However the website is pretty sluggish because it is not hosted on the same server as minecraft, but it should still work.
- IP: twm.servegame.com
- Website: webauction.threewisemeh.com
Source (GitHub)
WebAuction (jar) - http://bit.ly/o8vpPq
WebInterface (web files) - http://bit.ly/nPubR1
Description
Ok, so I know there are loads of shop plugins that all do slightly different things. But because of the UI restrictions in game, I chose to make a shop plugin that links in with a website via a MySQL database to make trade easier, and even allow people to check on how their items are doing without being logged into the game. (mobile device?).
Basic idea is that admins (or players with right permissions etc) set up auction houses around the world. Players can then go there and deposit items, when they do this the items disappear from the world and get logged into the players online account. They they put money in the online account by clicking signs. Once this is done and they have set a password, they can log into the website and see all the auctions that are going on.
Using the money in the online account they can buy items, and they will be sent to the mailbox in game (a sign) and they can set up their own auctions for the items they have stored online.
One of the main features is that the website will look at all the sales and calculate a moving average for the market price of that item. Which should help players when setting a price, or buyers to see if they are getting a good deal.
Notes:
- Just added a how to edit section for info and new designs to help change the look of the website
- Works best with iConomy stored in the same MySQL database as the WebAuction tables (direct money link from game to website)
Features:
- Only members of your server can get an account
- Change password from in game
- Deposit items to be sold by right-clicking a mailbox deposit sign while holding it
- Change online balance with signs
- Get items from a sign mail box
- Moving average market price calculations
- Can link directly to the iConomy database
Overview Video:
NEW VIDEO :D
Screenshots:
will take more soon, when we have spent a while using it so that the market prices are properly calculated.
Setup:
Basics:
- Download the WebAuction.zip and extract it
- Put the WebAuction.jar in the plugins folder on your minecraft server
- Put the WebAuctionInterface folder (you can rename) on your website
- Restart server
- Look in plugins/WebAuction to find the config file add your MySQL database details
- In the interface folders on website, find the scripts/config.php file and add MySQL details again
- Be careful with mysql passwords, special characters such as {}[]() may cause the file to be incorrectly read by the yml parser.
- Make everyone create a password, make sure its different to ones they use elsewhere etc.
- Make a sign for the withdraw mail box (see screenshot) First list: "[WebAuction]" Second line: "MailBox"
- Make a sign for the deposit mail box (see screenshot) First list: "[WebAuction]" Second line: "MailBox" Third line: "Deposit"
- If you have iConomy data stored in the same database as the WebAuction data, use the web config file to point to the right table, and ignore the stuff about withdraw and deposit signs.
- Make some withdraw and deposit signs for money (again in screenshot) First line "[WebAuction]" Second: "Withdraw" or "Deposit" Third: the amount of money, or for the withdraw sign you can put "All" on the third line
- You can also make recent auction signs, to show a live feed of the new auctions: First line "[WebAuction]" Second: "Recent" Third: a number for the offset, so for the most recent auction put "1", second most recent "2" etc.
- Log into the website and start selling
Important Signs
Mailbox:
Used to deposit items and withdraw items that are in your mail
Line 1: [WebAuction] Line 2: MailBox Line 3: Withdraw (not actually needed but makes it neater with the other deposit sign :P)
Line 1: [WebAuction] Line 2: MailBox Line 3: Deposit
Deposit Money:
Used to send money to the website to be used on the WebAuction (not needed if using iconomy databases) Line 3 can be any number (100, 0.01, 55.7 etc.)
Line 1: [WebAuction] Line 2: Deposit Line 3: 100
Withdraw Money:
Used to get money from the website to be used on the WebAuction (not needed if using iconomy databases) Line 3 can be any number (100, 0.01, 55.7 etc.) Line 3 can also be "All".
Line 1: [WebAuction] Line 2: Withdraw Line 3: All
Recent Auction Feed
Used to see recent auctions people have made, you can set up as many signs as you want each looking for subsequent auctions. For example in your auction house you could have one sign to show each of the five most recent auctions. For line 3 enter the number for the offset from the most recent auction ("1" for the most recent, "2" for the second most recent... etc.)
These signs will update automatically when new auctions are made, and will display the item name, the quantity and the price.
Line 1: [WebAuction] Line 2: Recent Line 3: 1
There is now also another way of displaying recent auctions. If you have the SignLink plugin on your server you can display values about the auctions however you like on signs using various bits of data as variables. So far I have just got:
- Auction Name (%WAName1%)
- Auction Price (%WAPrice1%)
- Auction Quantity (%WAQuant1%)
Where you can change the number (1) for any other in the same way as in the previous auction signs, except I think 0 is actually the most recent auction.
I will soon be adding other information such as the sellers name and maybe the market price etc.
New Auction Shouting
A sign that is given a radius, when a new auction is created it will shout in it's radius about it to anyone nearby, line 3 is the radius in blocks.
Line 1: [WebAuction] Line 2: Shout Line 3: 10
Twitter feed
If you want to send information of new auctions and sales to a twitter account. Open up the config.php file (in the scripts folder).
Go to: https:dev.twitter.com/apps/new Input all your information. It doesnt really matter what you put for the name and things on the first page. (and you don't need to add anything for the callback)
When you have created your new app, open the settings tab, and set the application type access to "read and write". Save everything. Go back to main app info page. On that page should be the consumer key and consumer secret. Add these two values to the config file.
Near the bottom of the page is a button that says "create access token", makes sure you have set the permissions to read and write then click this button and copy the two values it gives you into the config folder.
Done (hopefully)
More Setup Information
To get more info on how to set up the plugin, along with common problems, take a look at the How to Install page
Changing the Design
To see how to change the design, or select one someone else has made: How to Edit
Commands:
- /wa password [pass] (sets your password)
Permissions:
- wa.use.withdraw.items (use mail box)
- wa.use.withdraw.money (use withdraw sign)
- wa.use.deposit.items (use deposit sign)
- wa.use.deposit.money (use deposit sign)
- wa.canbuy (can buy from auction)
- wa.cansell (can sell to the auction)
- wa.create.sign.deposit (create deposit sign)
- wa.create.sign.withdraw (create withdraw sign)
- wa.create.sign.mailbox.withdraw (create mailbox sign)
- wa.create.sign.mailbox.deposit (create mailbox sign)
- wa.create.sign.shout (create a new auction shout sign)
- wa.create.sign.recent (create a recent auction sign)
- wa.webadmin (user account is admin on the website)
- wa.remove (remove WA signs)
Donations:
Hope you guys like the plugin, keep telling me things you think would be cool to add and I will do my best. And a donation is always nice :P
iConomy 7 or 6
2012-04-18 00:31:29 [SEVERE] Could not load 'plugins\WebAuction-Dev.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at me.exote.webauction.WebAuction.<init>(WebAuction.java:27) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144) ... 8 more Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 27 more
Please advise... thanks
@Clinten1991
do you have any auctions currently? this is a known problem with the original web auction. the error goes away once you have an auction in the list.
Yeah Thanks but i have a problem
DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error
can u help me pls ?
@Clinten1991
the original is no longer being updated, but there are 2 other versions, Plus and Lite in development. http://dev.bukkit.org/server-mods/?search=web+auction
Is it still being updated ? I need it for 1.2.5 :D Sry for my english.
When i installed it on my website i got this error: DataTables (table id = 'mainTable'): Requested Unknown Parameter '8' from the data source for row '0' please help its one of the most important plugins on my server
Grr i dont understand how i have never gotten this to work... Bukkit wont read the webauction.jar plugin at all... And the site works fine. If i use WebAuctionPlus The .jar plugin works 100% but the Site Dosnt work at all :/
If i use WebAuctionLite the .jar plugin shows it works but none of the commands/signs work.... and the site has MYSQL errors...
GRR Ive been trying to get this plugin working since the first release ... and its never worked :(
@lorenzo_p
Ok, thank you!
@TheRadarWolf
Exote is moving on from this to a new plugin project. I've updated this original WebAuction and fixed a few bugs, but a lot of bugs still exist in it, and I wont be continuing work on this. I have, however, forked WebAuctionPlus http://dev.bukkit.org/server-mods/webauctionplus/ and have been hard at work on it. I'm still working on the major bugs before I start adding any big features. in due time, this awesome plugin will only be getting better.
there is also a WebAuctionLite fork someone else has been working on. I haven't been following their progress, so I don't know if it's at a usable state for a production server. as far as I'm aware, there are still bugs in every version and fork, but we're working hard on this :-D
@user_892472
Well, my english isnt that good. Plus i dont understand if someone else is gonna continue somewhere else or is he going to continue?
@TheRadarWolf
Seriously can you read?
If you can, I'd suggest you go take a look at the comments below yours.
Seriously, does this get updated?
@XMdead market prices based on a rolling average would require a sale log going back at least a week. I believe WA_SellPrice does that already. I haven't looked at this code yet, so not sure how hard it would be to change. it's on my todo list, after more pressing issues are fixed.
the price sorting issue is a bit more difficult to fix.. the problem is, it uses jQuery and DataTables javascript libraries to do the sorting. the default libraries don't support currency sorting. I think there is a plugin or other library that does support this, but it's beyond my knowledge of javascript. if anyone could help with this, it'd be great!
currently, the only way for price sorting to work right, is to remove the currency symbol. I personally would rather have the $ symbol there, but we need a better fix.
I might not have time to look at any tax code for at least a week, but I will when I can.
@XMdead
Thanks this helps explain already;
your first point is exactly what made me go worse then broke and into negative a few days in a row. Are some fees charged at point of sale well after the auction is placed too? because I spent a good amount of time posting items for sale over the weekend, and a few times during the next few days I went back into negative, after being gifted some money, and not even posting any new items for sale.
But yeah, if it's mostly due to the relative market price, then that happened to me on many items, not just the less in demand ones like discs, on our webauction at least, relative market price was jacked up on a bunch of things (shears, armour, furnaces, workbenches, some others because some nitwits sold some for insane prices that no one would pay, and I was unfortunate enough to try and list some at some more reasonable prices, and was penalized heavily for it.
It is awesome software, but this was disappointing, please fix it when you guys have time (or I read lower in the thread the dev is making a new plugin using some new code or tools, which is cool)
I suppose I'll need to be more careful and not list in those categories, i was kinda hoping that by listing in them the relative price would drop (unfortunately, not worth it, it turns out)
Awesome plugin but has some flaws that could be easily fixed:
Hi guys, I'm looking for more info on how the taxes and fees work at the auction house, seems a bit curious with latest update, people being charged fees that are too expensive, either based on relative market price or i don't know what - are there some help files or some explanation of the formulas used to charge people fees? thanks in advance.
@Exote
I've really learned a lot from this, thank you. I plan to continue my work as long as time permits. I'll keep an eye out for your new plugin exote. I look forward to trying it out!
people who are having issues with my version, please create an issue ticket here if there isn't already one for your problem. http://code.google.com/p/webauctionplus/issues/list if you're having trouble with the original version, please let me know when you describe the problem. I'll fix it if it doesn't require to many changes.
in my plus version, I've fixed a few bugs and created some new ones. last night I made some big changes to mysql queries in the jar plugin. it's still mostly untested, but seems to be working. it now creates a pool of connections to the database, and in multi-threaded mode, it will create more connections if the current ones are all busy. also, some queries are no longer run if an update isn't needed. there are other changes I can't think of at the moment. it has a long way to go, but it's getting there.
Exote: maybe I have permission to officially open source my version?
So does this get updated? Because this plugin is EPIC
@Exote
i love you exote :) ... thanks for let other update ... i plan to re-code all and update ...new way... :) http://dev.bukkit.org/server-mods/webauctionlite/ ...
and i love this plugin.. really :)