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 Sep 29, 2011:( I get this kind of long error, and i have all insalled corrtly, mysql on webhost is working: (auction.joachimcraft.com) but i get this error:
14:32:19 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.Plugi
nClassLoader] 14:32:19 [INFO] Entities enhanced[0] subclassed[3] 14:32:19 [SEVERE] Could not load 'plugins\WebAuction.jar' in folder 'plugins': S pout org.bukkit.plugin.UnknownDependencyException: Spout at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:133) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:213) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:136) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:408) at org.bukkit.Bukkit.reload(Bukkit.java:173) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java: 22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 3) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3 53) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3 49) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) ===
-
View User Profile
-
Send Message
Posted Sep 29, 2011@Exote
The website version i took the photos from was v0.2.6 (latest)
E: The errors are still there.
-
View User Profile
-
Send Message
Posted Sep 29, 2011Another problem, i'm trying to put down the [WebAuction] Mailbox sign but it says i don't have an permission, i don't use any permission plugins, but i'm an op in my server.
E: Fixed the B had to be capitalized, like "MailBox" even the dev site says "Mailbox"
-
View User Profile
-
Send Message
Posted Sep 29, 2011@Ermuu
Ok, thanks for showing me those errors, though I caught all the "isset" problems. Download .zip at top of this page for new (hopefully fixed) website files.
-
View User Profile
-
Send Message
Posted Sep 29, 2011Okay, i'm happy now, i got the MySQL stuff working, but the only problem now is the annoying error reports on the website. I'll put some photoes below.
-
View User Profile
-
Send Message
Posted Sep 29, 2011@d4rkwarriors
Nice idea, will try to include this :)
@Ermuu
You haven't set up the MySQL connection in the plugin's config file. So the database tables haven't been created yet.
-
View User Profile
-
Send Message
Posted Sep 29, 2011I keep getting this:
PS. Config file under error code.
Edit: Also, when i put false username and password on the website part it just gives:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/ermu/public_html/scripts/login-script.php on line 10
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/ermu/public_html/scripts/login-script.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /home/ermu/public_html/scripts/login-script.php:10) in /home/ermu/public_html/scripts/login-script.php on line 26
---------------11:19:24 [INFO] Spout 1.0.6.381 has been initialized
11:19:25 [INFO] [iConomy - Celty] Enabled (14 ms)
11:19:25 [INFO] [WebAuction] WebAuction is initializing
11:19:25 [INFO] [WebAuction] MySQL Initializing
11:19:25 [SEVERE] [WebAuction] SQLException! Must specify port after ':' in conn
ection string
11:19:25 [INFO] [WebAuction] MySQL connection successful
11:19:25 [SEVERE] [WebAuction] SQLException! Must specify port after ':' in conn
ection string
11:19:25 [SEVERE] Error occurred while enabling WebAuction v0.2.6 (Is it up to d
ate?): null
java.lang.NullPointerException
at com.alta189.sqlLibrary.MySQL.DatabaseHandler.checkTable(DatabaseHandl
er.java:134)
at com.alta189.sqlLibrary.MySQL.mysqlCore.checkTable(mysqlCore.java:72)
at me.exote.webauction.WebAuction.onEnable(WebAuction.java:101)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
.java:920)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
r.java:278)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156
)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
--------------------------dbDatabase: ermu_mc
dbHost: mysql://******.x10.mx:3306
dbPass: **
dbUser: ermu_mc
reportSalesInGame: false
signDelayMilli: 1000
-
View User Profile
-
Send Message
Posted Sep 29, 2011@Exote Oh, that is the problem, but i couldn't find a free remote MySql service.. :( maybe do you know one?
-
View User Profile
-
Send Message
Posted Sep 29, 2011possibility to broadcast a message in the game like a real Auction?
could be fanny if u can set a Sign for brodcast self autcion message around 50 or 60 blocs, so i can set e specify place to do Auctions.
-
View User Profile
-
Send Message
Posted Sep 28, 2011@Exote darkcloud.provisionhost.com/auctions/
-
View User Profile
-
Send Message
Posted Sep 28, 2011@darkcloud784
Link me your website?
-
View User Profile
-
Send Message
Posted Sep 28, 2011@Exote
I have tried the newest version as well as 2.5. I always do a completely fresh installlation of the plugin/plugin components webside and server side. Both are linked and operational but the player images are not showing.
-
View User Profile
-
Send Message
Posted Sep 28, 2011@Ermuu
A problem with your config file? cant really tell.
-
View User Profile
-
Send Message
Posted Sep 28, 2011Ok, so now i got the SQL working i hope, but on startting the server, it seems there's an error on the WebAuction.jar
-------------------------22:27:05 [SEVERE] Could not load 'plugins\WebAuction.jar' in folder 'plugins':
while scanning a simple key
in "<reader>", line 7, column 1:
db
^
could not found expected ':'
in "<reader>", line 7, column 3:
^
at org.yaml.snakeyaml.scanner.ScannerImpl.removePossibleSimpleKey(Scanne
rImpl.java:456)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchStreamEnd(ScannerImpl.jav
a:521)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
va:248)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
3)
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
serImpl.java:564)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
:228)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
2)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
tructor.java:124)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
at org.bukkit.util.config.Configuration.load(Configuration.java:82)
at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
ava:175)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
java:213)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
.java:136)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
ationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
---------------------------
View User Profile
-
Send Message
Posted Sep 28, 2011@craftallnight
The minecraft server cant reach your website's database, most likely reason is that your remote mysql settings only allow local scripts to use the database, so when a different ip (your minecraft server) tries to connect it gets denied.
If you have access to cpanel look for "remote MySQL" as an option, and add the host "%" (wildcard) so that your server can connect. If you can't find how to set the remote mysql settings try asking your host.
-
View User Profile
-
Send Message
Posted Sep 28, 2011ohm, sorry for bad english, maybe
-
View User Profile
-
Send Message
Posted Sep 28, 2011Hy!
I have a problem whit that plugin. I installed the plugin, to my plugins folder and to the web (web is working). i'm using 000webhost, i can connect to the mysql databse, but in game, if i write a webauction command like /wa password example , the game say 'Help file on it's way' and this msg for the all commands. What's the problem?
18:48:25 [INFO] [WebAuction] WebAuction is initializing 18:48:25 [INFO] [WebAuction] MySQL Initializing 18:48:46 [SEVERE] [WebAuction] SQLException! Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driv er has not received any packets from the server. 18:48:46 [INFO] [WebAuction] MySQL connection successful
and when i tipye 'wa':
wa
18:50:12 [WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing command 'wa' in plugin WebAuction v0.2.4 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 3) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3 53) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3 49) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.Coloured ConsoleSender cannot be cast to org.bukkit.entity.Player at me.exote.webauction.WebAuctionCommands.onCommand(WebAuctionCommands.j ava:46) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39) ... 7 more
-
View User Profile
-
Send Message
Posted Sep 28, 2011@Exote
I think i found out a better solution, thanks for your help!
-
View User Profile
-
Send Message
Posted Sep 28, 2011Yeah i checked and i'd have to upgrade the account to get the full CPanel.
-
View User Profile
-
Send Message
Posted Sep 28, 2011@Ermuu
Have a look on cpanel for something called "Remote MySQL" or similar if you can find that add "%" as a host. This means all hosts can connect to the database, not just scripts running on the same host (php web files for that website)