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.
This needs development build, as were getting loads of bugs and errors :/
I tested 2 database, one remote and one local. The plugin failed the connection. Using spigot 1611.
This is the fork supporting all meta items and reduced lag spike (move mailbox saving to async bukkit runnable)
Since my server is not going to use web interface, and I decided use vbox only as mailbox (admin -> players), so I am not sure whether this fork breaks the web interface.
https://github.com/Saren-Arterius/WebAuctionPlus-1.1/
How about plugins like these. Will it be supported without problem?
http://dev.bukkit.org/bukkit-plugins/sparkling-tools/
Custom plugins that adds weapons, tools, horse armors, etc?
I do hope you plan on to support cb1.7.9-r0.2
So does this store NBT / custom items? we have a custom items plugin coming up and it'd be nice to have these things stored. (Protocol LIb canhelp here)
@lorenzo_p
Can't wait to test out the new stuff ;)
@madtomic @madtomic
sure, should be easy enough to add a command for the mailbox. I'm testing the new mailbox code with mythicdrops items, so this should be fixed and working once it's ready.
the mailbox is some of the most complex code in the plugin, so once I've finished this part, I'm posting a jar for testing, so you or anyone else can test depositing and withdrawing items. xx0m3gaxx helped write the code dealing with items a few weeks ago, but I'm still working on finishing it up, hoping it will work perfect. I still have to write the sql queries for this, which are also complex. I'll post here when it's ready for testing.
@lorenzo_p
Do you think you can add support for plugin like MythicDrops?
@lorenzo_p
Thank you. I figured it out why it wasn't working. Can you add in command for the mailbox? It should be easy to add I think. Something like /wa mailbox the reason then I could use npcs bind with command and it would work when you right click a npc.
@madtomic @madtomic @madtomic @madtomic
yea, it works with recent bukkit versions. there's no eta for the next plugin update, but I may have a site soon with a nightly build. if you're not using iconomy with mysql, you'll have to use the deposit/withdraw signs for now. working on a fix for this. behind on bug tickets, but I'll look over them again soon.
@TheVnChecker
I thought I fixed potions before. the item defines file has entries for creative and crafted potions. it's possible the id's changed again. the best way to fix this, switch to using the item name. being worked on but much to do.
3.0 was a from scratch project, mostly experimental. I'm now attempting to take what I've learned from that project and add the changes into the current version. if I don't break everything in the process, I'll commit it to the repo. we'll see what I come up with.
@TheNytangel
Actually, I have no idea what any of this means... hopefully lorenzo_p can explain this, if not, good luck :P
Edit: line 3934 is where potions are
@TheVnChecker
What version of Minecraft are you using? Minecraft has been switching over to minecraft:torch or something like that, so it might not show meta data. But if it does:
If you have on item IDs (I think it is F3 + H), they will show you meta data. If you look in the website files for /inc/ItemPacks/default and then go to item.defines.php, down at the bottom of the file is where potions and their meta data is and you can add it.
I don't know if lorenzo_p plans on fixing this until he releases WA+ 3.0, but until then, I'd say just add your potions to that.
@TheNytangel
Can you look into the Potion Problems? There is a bug that player can't sell potions because "Unknown Potions"... There are no errors in my console.
[Edit]
Self produced potions are unknown but creative potions works fine...
i put in tickets. npc can be use if this has more commands like /wa webauction+ mailbox for using the chest. i got the iConomy to work with this. Thanks for your help.
@madtomic
I don't believe so. I think it's only the sign.
does this have command? /wa something to use the mailbox?
It seems Vault not woking? I'm using BOSEconomy. How can I hook this to use the MySQL already in place?
Are you doing an update for cb1.7.2-r0.3? Can I use the current build with it yet?
@tremby90 @TheVnChecker
thanks. the item bugs are being worked on. if I have time, I'll also look at some bug tickets and fix other things.
@MarioG1
thanks for any help with it. there may also be a few missing enchantments and potions yet. it's on my todo list if no one else fixes it.
@pookshuman
maybe I can have it scan their mailbox for all items of the same type and add up the quantity. I can improve this if/when I get around to it. it's in the same realm of the mailbox bugs. the code needs some rethinking, which xx0m3gaxx is helping look into.
@bananoke
possibly. I don't personally use authme, so never had a need for it, and I don't have a clear picture of how it works internally. if anyone is familior enough with it to help add this feature.
@superminese
can do. I've figured out how to do this and put together a little code. it'll now have a column for listing the time/date the auction was created, and sort by this by default.
@PhyreStormAZ
yes, the plugin does support any economy which is compatible with vault, however at the moment, the website is only able to get a live link if you're using iconomy with mysql. if you're using another economy plugin, you'll have to use the money deposit/withdraw signs. I plan to fix this and have full support for all vault economies, once I've gotten to finish the code for this.