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.
@Karudel
In 1.2.28 we store all Item informations in the database. We use the bukkit Itemstack serialization method to get all Itemdata into an String to store it in the database.
Idk if Forge has extended the bukkit API to serialize also the Forge item data. You can just try to install 1.2.28 and check if all the item data is saved or not.
@MarioG1
Hey MarioG1, wondering if it'd be possible to make WebAuctionPlus use material item IDs instead of item IDs, what I mean by this is, instead of storing say, a Diamond Sword as 264, store it as it's material ID which is DIAMOND_SWORD.
I'm also wondering if it'd be possible for you to add Forge item NBT data support?
Thank you for taking the time to read this.
@sidboy55555
Server shops were added in the in 1.2.28 ;)
WOW, the plugin is really updated i can tell, i like it :P, but waiting until server shops are being added with unlimited stock :P
Hi, I have problem with items duplication. When player has full mailbox of items then cancel some auctions from web and then pick last stack of items from mailbox, then items are duplicated. I think that which are duplicated are items for which is mailbox full. Sorry for my english :o)
@DaisukeVN
the permission node wa.use.command.mailbox should work. maybe you have some other permission overriding it? not sure if the order you have them in matters.
https://github.com/WebAuctionPlus/WebAuctionPlus-1.2/blob/master/java/src/me/lorenzop/webauctionplus/listeners/WebAuctionCommands.java#L82
@marcotaub
when you close the mailbox the first time, check console for any errors or exceptions. it should reset for you if you log out and back in, then the mailbox should work again. also, if you're using a modded server, 6 months ago or so the new open source bukkit server (don't remember the name of it at the moment) didn't support firing the right event to handle closing/saving the inventory. not sure if this was ever fixed.
Hello, if got a Problem with the MailBox! I can open it and close it but when i want to open it again it says "MailBox already opened!"
I dont know if it is a bug or sth. like that :/
Thanks for help!
Marco
@lorenzo_p
Okay. The permission "wa.*" work fine for me.
I had change very much places in the website code. For every single page. I can upload the translated files for you if you need but its not fully translated.
I think so 80% of your website are translated. I'm a lazy boy :P
[Edit] wa.use.command.mailbox or wa.use.mailbox doesn't work for me. Member with this permissions can't use /wa mailbox.
@DaisukeVN
here is the full list of permissions. I think op doesn't get the mailbox command by default. if you give yourself wa.* that should give you permission.
if you're updating from 1.2.28 nothing has recently changed in the website. how many places do you change the text language in the website code? maybe I can finish the language support for the website some time.
@lorenzo_p
I can't use "/wa mailbox". Its print me that i haven't permissions but i have '*' permissions. I'm the Owner and have all permissions.
I use PermissionsEx Plugin.
Can i change the version number of the old interface or must i use the new interface? My Interface is translated so i will keep the interface if you had not change anything.
@DaisukeVN
I was blocking a few countries at the router which were a source of heavy attacks on my servers. I'm guessing this was blocking your download. I've disabled the block for now, so the link should work for you now.
Let me know if you have any other trouble with the plugin. If not, I'll upload the 1.2.29 version to dev bukkit.
@lorenzo_p:
Please fix your downloadlink. It doesn't work for us.
@lorenzo_p
Download link it does not work ;(
http://dl.poixson.com/WebAuctionPlus/WebAuctionPlus-1.2.29.zip
any other bugs found?
Is there a fix available to the Webstore yet? Its been broken since the last update
@lorenzo_p
yes (: you can add new Download link?
@verreckdusau
sorry, my core switch lost its firmware (heat problem I think) had to replace it with my older switch until I try fixing it. took me a little while that day to get back and configure and swap out the switch. the link works now.
@lorenzo_p
i can no Download thes link :( http://dl.poixson.com/WebAuctionPlus/WebAuctionPlus-1.2.29.zip
@verreckdusau
I've built a new version which should fix the bug. let me know if you have any other problems with it. (I don't have a dev server set up right now to test the plugin, but should work)
http://dl.poixson.com/WebAuctionPlus/WebAuctionPlus-1.2.29.zip
can you fixx thes erro on buy pls MySQL ERROR - File: /var/www/vhosts/eu-deadzone.de/httpdocs/shop/inc/classes/logSales.class.php Line: 30 Column 'sellerId' cannot be null
INSERT INTO `WALogSales` ( `logType`, `saleType`, `timestamp`, `itemType`, `itemId`, `itemDamage`, `itemTitle`, `enchantments`, `sellerId`, `buyerId`, `qty`, `price`, `alert` ) VALUES ( 'sale', 'server', NOW(), '', 159, 0, 'White Stained Clay', '', NULL, '1', 1, 1.5, 0 )