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

-
View User Profile
-
Send Message
Posted Jan 24, 2012Actually I think I have isolated the problem to purchaseItem.php file. Something contained within the if ($sendPurchaceToMail){} statement on line 58 is not firing right. Things send fine as long as they are sent to the WA_Items table, but not if sent directly to the WA_Mail table. I'll keep poking at it to let you know if I find anything obvious.
Also, if you are building in more admin web store functionality, is there a way you can add the ability to purchase permissions with iConomy currency as well. I would like to be able to sell things like flying for a limited time, say 5 minutes for $500, or Creative Mode for a day for $5,000. I think this would add an all new way to use this plugin.
-
View User Profile
-
Send Message
Posted Jan 24, 2012@SethG911
I am not sure how well infinite stacks are working at the moment. At the moment I am building a whole new version of the website that will have server shops properly built in.
I should have this new version finished in a week or so. Until then I am not sure what to suggest as I am not really updating the current version of the web files so that I can concentrate on the new build.
-
View User Profile
-
Send Message
Posted Jan 24, 2012I am trying to create a non-existant player in the DB named WebShop that is an admin and can post infinite stacks of items so my server can use this more like a store than an auction house. It seems like any auctions I create for that user in the DB don't send to the mail properly. Money transfers and whatnot, the transaction goes through and shows in my history, but the item never shows in the mail or my items section. Does the seller need to be an actual player even though I gave the correct permissions in the DB entry?
-
View User Profile
-
Send Message
Posted Jan 24, 2012@xcanner
I broke this a few weeks ago and fixed it about 2 days ago :P
Try the links at the top of the page for more recent versions.
-
View User Profile
-
Send Message
Posted Jan 24, 2012@Exote
Using costPerItemPerDay = 0.05 and not using iconomy.
Pastebin of config.php: http://pastebin.com/ZXEin3an
Shouldnt it charge of the webauction accounts? Testet it on a user who have 1 item (its not for sale) and $100 on the webauction account.
-
View User Profile
-
Send Message
Posted Jan 23, 2012@Exote:
It will really help me because I will be playing on a role play server and need to make money with this :P But thanks for reading/replying!
-
View User Profile
-
Send Message
Posted Jan 23, 2012@Azpet
At the moment auction fees just disappear, but I'm not quite sure how I am going to code it for the next version of the website.
-
View User Profile
-
Send Message
Posted Jan 23, 2012does the fee go to a player or is it just going nowhere? and can't they use it like a infinite chest? Already thanks for the awesome plugin!
-
View User Profile
-
Send Message
Posted Jan 23, 2012@addemod
Total price of what?
-
View User Profile
-
Send Message
Posted Jan 23, 2012Ok, but why doesn't it says the total price?
-
View User Profile
-
Send Message
Posted Jan 23, 2012@Exote
thanks for your help, your whitelisted. we just added a new map so the server doesnt look its norm and normally we dont have a whitelist but becuase of these issues its locked down like this. the "Shops" Table is where all the iConomy data is stored. I have the iconomy and the WebAuction data in the same database, is that bad?
-
View User Profile
-
Send Message
Posted Jan 23, 2012@Natokill4
Whitelist moehb, and I will come have a look.
Also, what is that shops table?
-
View User Profile
-
Send Message
Posted Jan 23, 2012Making good progress on the proper release version of the website files. :D
It is being build on FUEL cms for CodeIgniter, so it will have loads more stuff in it, and easier ways to edit everything.
Most of the original pages are working, however it is taking some time to handle the transferring of items and money as I completely re-did the entire database structure.
I will also have to come up with a new way of linking website accounts to in game characters. Because that the moment anyone can just sign up with a username... But it is quite hard to manipulate the existing login system to incorporate in game authentication.
The design of the site is coming along, but clearly needs more work.
Anyway just thought I would update you guys.
The link to my development testing site is: http:webauction.threewisemeh.com Feel free to have a look at what is happening so far, but don't expect to be able to do much :P
-
View User Profile
-
Send Message
Posted Jan 23, 2012@Exote
So I believe I finally got the this installed correctly but i've hit a brick wall. The mysql seems to be working, and the "Shops" table is the iConomy data.
I direct my wordpress page to the WebAuction index.php and it brings me to the login.php page instead, ok.
http://minesector.us4.creeperhost.net/MinesectorShops/login.php
But after I set my password in-game then try to put in the login.php page I am first taken to I click login and absolutely nothing happens. Google Chrome at the bottom left tells me "Uploaded 100%" but thats it, no error and no redirect to index.php after a successful login.
-
View User Profile
-
Send Message
Posted Jan 23, 2012@addemod
That error means you have no users in your iconomy table.
-
View User Profile
-
Send Message
Posted Jan 23, 2012ok now I got iConomy in wa, but it doeant say that amount I jave in game?
Getting something when logged in: Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\WebInterface\index.php on line 19
(using xampp until my server is workimg to 100%)
-
View User Profile
-
Send Message
Posted Jan 23, 2012@addemod
Don't think that is to do with Web Auction
-
View User Profile
-
Send Message
Posted Jan 23, 2012here is one called errors.htm in a json folder Post-parsing
Test-JSON.php
Post-parsing
Warnings:
Warning - Class Services_JSON_ErrorSuppression_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_Spaces_Comments_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_Empties_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_UnquotedKeys_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_Error parent PEAR_Error not found
Warning - Class Services_JSON_AssocArray_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_EncDec_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_NestedArray_TestCase parent PHPUnit_TestCase not found
Warning - Class Services_JSON_Object_TestCase parent PHPUnit_TestCase not found
JSON.php
Warnings:
Warning on line 115 - no @package tag was used in a DocBlock for class Services_JSON
Warning on line 781 - no @package tag was used in a DocBlock for class Services_JSON_Error
Warning on line 795 - no @package tag was used in a DocBlock for class Services_JSON_Error
Warning on line 795 - duplicate class element "Services_JSON_Error" in file /Users/migurski/Sites/JSON-PHP/JSON.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.
Test-JSON.php
Warnings:
Warning on line 19 - package default is already in category , will now replace with category
Warning on line 21 - Page-level DocBlock precedes "require_once Test-JSON.php", use another DocBlock to document the source element
Warning on line 24 - no @package tag was used in a DocBlock for class Services_JSON_EncDec_TestCase
Warning on line 156 - no @package tag was used in a DocBlock for class Services_JSON_AssocArray_TestCase
Warning on line 211 - no @package tag was used in a DocBlock for class Services_JSON_NestedArray_TestCase
Warning on line 288 - no @package tag was used in a DocBlock for class Services_JSON_Object_TestCase
Warning on line 327 - no @package tag was used in a DocBlock for class Services_JSON_Spaces_Comments_TestCase
Warning on line 363 - no @package tag was used in a DocBlock for class Services_JSON_Empties_TestCase
Warning on line 405 - no @package tag was used in a DocBlock for class Services_JSON_UnquotedKeys_TestCase
Warning on line 433 - no @package tag was used in a DocBlock for class Services_JSON_ErrorSuppression_TestCase
Documentation generated on Tue, 27 Jun 2006 22:54:27 -0700 by phpDocumentor 1.2.3
-
View User Profile
-
Send Message
Posted Jan 23, 2012OK Me but the plugin did not work, i will try install plugin again. :)
-
View User Profile
-
Send Message
Posted Jan 23, 2012@addemod
Any error in the log of either php website or server?