WebAuctionPlus
WebAuctionPlus - eBay for Minecraft!
A minecraft/bukkit shop plugin for your website! This is a rewrite of the original WebAuction with many new features and improvements. I've made to many improvements to the code to list on one page. Many of my plans require big changes and a lot of new code. As with any new code, bugs are to be expected, so please bare with me and report any bugs you come across.
Note: It is strongly recommended you backup your database before using or updating this plugin. Some of the bug fixes and performance improvements I'm making require big changes to the database. The WebAuctionPlus plugin will convert and update the database automatically the first time it's run.
New virtual inventory MailBox has been added with the update of Minecraft 1.3 and WebAuctionPlus 1.1. When a player right clicks on a MailBox sign, it opens up their virtual mailbox inventory and locks their website account to prevent item dups. When they close their mailbox, it updates their inventory and unlocks their website account. NOTE: This feature is new and running single threaded. If you experience lag related to this, I can see what I can do to make it multi-threaded.
Requires: Vault - http://dev.bukkit.org/server-mods/vault/
Requires: Web server with PHP and MySQL
Optional: SignLink - http://dev.bukkit.org/server-mods/signlink/
A few improvements by lorenzop
- new ajax listing code (fast!)
- new virtual inventory mailbox
- all new web interface
- all new item deposit/withdraw code
- database connections are handled better
- connection pool limits can be set in config
- task update times are now configured in seconds
- tasks can be disabled by setting the update frequency to -1
- new announcement system
- added "/wa reload" and "/wa save" commands
- accounts can be created or passwords changed from the console
- multi-language support
To do
- server shops (unlimited stock improved)
- better support for vault economies
- custom description for items being sold
- wish list / auto sales
- track all wa signs to prevent unauthorized signs
Youtube Videos
Languages
If you'd like this plugin translated to another language, feel free to download the en.yml file from the link above, translate it to your own language, and send it to me.
Signs
WebAuctionPlus signs can be created by placing a sign with [WebAuction], [WebAuction+], or [wa] on the first line. Case doesn't matter, the plugin will fix it for you.
Note: you cannot use the deposit mailbox sign while in creative mode. this shouldn't ever be needed in the normal operation of the plugin, so as a general protection, it's always denied.
Note: withdraw mailbox signs can now have a quantity of stacks on the last line, or leave it blank for all mail.
SignLink
- %waTitle - items name
- %waPrice - price each
- %waSeller - sellers name
- %waType - Buy Now or Auction
Source Code
Development Builds
Development Builds can be found at the link below. Development builds aren't approved by the bukkit team and they might be buggy.
Commands
- /wa password <apassword> - Changes your Web Auction Plus account password, or creates an account if you don't have one. This command can also be used from console in the format: wa password <playername> <apassword> and short-hand aliases "pass" or "pw" can be used in place of "password". For example, /wa pw mypassword123
- /wa mailbox - Opens the WebAuction mailbox.
- /wa deposit <amount> - Deposit money into your Auction account.
- /wa withdraw <amount> - Withdraw money from your Auction account.
- /wa reload - This feature is currently broken and disabled. It will be working again soon.
- /wa update - Forces recent signs to update. Also updates SignLink signs.
- /wa version - Displays the current running version of Web Auction Plus.
Permission nodes
note: these may change at some point
- wa.use.mailbox (use mailbox sign)
- wa.use.deposit.money (use money deposit sign)
- wa.use.withdraw.money (use money withdraw sign)
- wa.use.command.mailbox (use the mailbox command)
- wa.use.command.deposit (use the deposit command)
- wa.use.command.withdraw (use the withdraw command)
- wa.announcer.receive (can see auto announcements)
- wa.password.create (can create a new account)
- wa.password.change (can change their password for an existing account)
- wa.canbuy (can buy from web auction)
- wa.cansell (can sell with web auction)
- wa.create.sign.mailbox (create mailbox sign)
- wa.create.sign.deposit (create money deposit sign)
- wa.create.sign.withdraw (create money withdraw 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)
- wa.reload (reloads the WebAuctionPlus config)
How to Install
Join us and chat some time on our irc channel. #webauctionplus on esper.net webchat.esper.net
Plugin Usage
As I've said in comments, I don't agree with the mojang buyout. as much as I've enjoyed working on this plugin and want to see it continue, I'm no longer doing all the work. MarioG1 has stepped up to work on the plugin. I may still help somewhat if he wants, but I'm passing the torch to him as the lead. good luck, hope you write some good code and features.
My server's been crashing randomly several times a day for a few days, so I decided to try and figure out what was causing it.
It seems like it is WebAuctionPlus, after trying with several other plugins, without luck, I disabled WebAuctionPlus and there has been no crashes.
I get no error messages in the console what so ever, the only thing is;
14.04 18:30:53 [Multicraft] Looks like a crash, check the server console
14.04 18:30:53 [Multicraft] Minecraft shut down
Anyhow, I'm hoping for your new version to be working better because this plugin is awesome, just thought I'd let you know.
Hello.
It is very annoying that you can only buy 1 type of item at a time, + it increases the bandwidth used, how about adding and option so that you can buy more items without having to wait for the site to refresh after just being 1 type of item?
That would be a really neat feature :)
Keep up the good work dude, very excited to see what you can make of this plugin! :D
@TheRadarWolf
yup, I'll have a setting in the config to switch between onsite inventory and using deposit/withdraw signs.
@lorenzo_p
But you leave the sign thing in the plugin then? Because i kinda like that!
@ablac
lol.. sounds like some issues. take it one step at a time. have you gotten any console errors? what doesn't work in the webauctionplus website? I do have a lot of changes coming to this next version, so maybe it will fix your problems.
the "Hey, no cheating!" message is because you can't deposit items while in survival mode. it's a simple piece of code I added to deter cheaters, including staff. just change to survival mode and you can deposit. the plan is, for server shops, you wont have to deposit items anymore. just go on the website to a server shops page and select what you wanna sell from a full list of items.
I'm unsure of the state of web auction lite. the original web auction, I updated enough to get it to work, but it still contains bugs http://code.google.com/p/webauctionplus/downloads/list I'm not making any big changes to it to fix it. my time is spent on plus.
an update on WebAuctionPlus 1.0.3: I've rewritten the deposit/withdraw code and it works great now. the web interface on the other hand, is completely broken and in pieces. I've wanted to make a lot of changes to the structure of the php, but I've put it off as long as I could so I didn't break things. but now it's time for those changes and things are broke.
if anyone is good with php and would like to help, plenty of work to be done. I'm trying to keep mostly original for now, and just fix bugs and move things around. I'm slowly writing new functions and reorganizing code. it's coming together slowly, but very well.
@lorenzo_p
Yeaaaaah that's the stuff!!
You rock dude, thanks!
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 :/ and i get this strange message when i try to deposit items "Hey No Cheating"
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
@TheRadarWolf
doing on site inventory could be tricky, but I think I have a plan that will work. currently, 2 options. the first one, have web auction plus update the database every time a players inventory changes. this I feel is the simplest approach, and I don't think should cause much of an impact on performance. the second option is more complicated, but can be multi-threaded. have a separate json connection from the web server to the plugin to check for inventory updates on the fly (when the page loads). this is a lot more to code and set up, but may be a better option if we're critical about our cpu load. I think probably go with the first option and see how that goes. that shouldn't be more than 2 days work once I start on 1.0.4.
I'm currently about 70% finished with 1.0.3. a lot of code rewritten, and a bunch more to go tomorrow, but this new code seems to be working perfect!
You ask: On site inventory (no more depositing items) if thats a nice opinion. I think it is, but only if you make it a option in the settings. So you can choose between that or just with the sign.
And i dont get this: Banking (full system with transaction logs, credit cards, and ATMs)? Also does it then work with iConomy?
I'm about half finished with the next version, 1.0.3. I just finished overhauling the item deposit and withdraw code. I have to make some changes to the database to do this, but the plugin should automatically update your database now. it now uses fewer queries, and enchantments should work right. my initial tests are working great. next, I'll have to update the web interface to use the new database structure. there's a lot of new code in this version coming up, so make database backups and see if anything you can think of can break it.
Awesome, working better than ever! Thanks a lot for keeping this plugin alive!
-Caid.
@drAkeTool
this sounds like a minor error. either the iConomy database wasn't found, or that user doesn't have a balance record. if you think it's a bug, please submit a ticket and I'll look at it. I plan to write new functions to handle a lot of this anyway.
Hi!
I have error SQL T.T
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\WebInterface\index.php on line 19
in web Interface
Great, you made the page I asked for :-D
@user_892472
could be a bug. there's more work to be done on that code. I haven't tried changing from $, but I don't think that would affect it. probably just a simple mistake in the code. I'll look into this soon. could you submit a ticket for it?
Hello, my account-balance is not showing up on the website it simply says "euros", but whenver I deposit money, it tells me the right balance, and I am also able to buy stuff, so the only thing missing is the number.
Could this possibly be a bug? (NOT using iConomy with MySQL).<- so that is set to false in the config.
there is an enchantment duping bug reported to me by pherce. I'm working on the item deposit code and making some new functions. this should fix any deposit bugs and improve performance even more on larger servers. it'll be a few days to finish it, but I'll make another release when it's ready.
Downloaded and working like a charm! Thank you very much!
Not approved yet?