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.
I updated it to 1.12 , link to it: here
if someone wants to put some quality effort into updating the plugin, I may be able to help somewhat or guide you, but I can't do the update myself.
Hello
: I am using the plug-in when have a problem you can help me?
When the plug-in is not loaded successfully, how does this chan。
when you will update this plugin?
there have been a lot of new items added since this plugin was last updated. it's not hard to add the item info and icon images. if someone wants to take some time to learn the format of the info file and add the images, please send me a copy or submit a pull request so we can add it. the files can be found here https://github.com/WebAuctionPlus/WebAuctionPlus-1.2/tree/master/www/WebInterface/inc/ItemPacks/default
as for me, I may still one day get around to working on this plugin again, if I ever can get around to it and feel up to it. if anyone else wants to try improving the plugin, give it a shot.
@sidboy55555
I hope, that the developing for this plugin isn't stopped
But i need it for my server on 1.11
Hello, the plugin should still work with 1.11, unless they changed something in the bukkit api that broke it. as I remember it, they have broken the api at least once since craftbukkit ended. If that's the case, it shouldn't be to difficult to fix and recompile. If you do run into any problems, please submit a bug ticket so someone can look into it.
I mean that you should continue this plugin. You could add Itemicons for the new versions for minecraft and add new features, that Spigot add in the api. I don't know about developing but i know, that you be talented for that.
Maybe you find an assistent they you can help you. But don't give up this plugin.
Can you help me with what type of website i can use?
I hope i dont have to pay for any domain or shit :3
you do need a web server to use this plugin. a domain is optional, but is nice to have. the web server can be hosted from the same system as your minecraft server, or you can use a hosting provider in "the cloud". the web server needs php 5.6 but doesn't need mysql, it works best to keep mysql on the same system as your minecraft server and let the website connect to it there.
Can´t wait until its updates to mc 1.10 :P
updating to php7 would be a good idea, if anyone wants to help with that, you're welcome to. but if you do make a pull request, please keep the changed lines clean and to the point, and logs describing what changed. clean code will mean the best chance of getting the pull request accepted.
I recently took a look into the minecraft client jar file. it's possible the way the images are stored may have changed since I last looked at this. does anyone know if there is an item icon stored in the jar for every sell-able item? in the past, it used to be a sprite sheet, and most items (blocks for instance) were only the flat images, and needed to be 3d rendered before they could be used to display an icon. if all the icons are in there now, I'll work on a program to extract all the icons and item info automatically, then finally not have to manually add all the new items.
A really cool plugin. Will we soon have an update to PHP 7 enter.
@thedeadprince
if anyone wants to add all the new items since 1.8 I'd gladly accept a copy of the files to put in the plugin, then I'll work on updating to the latest bukkit version.
Hi there i have got this plaugin and think it is an amazing idea.
the only problems i have is im on 1.10 and just wanted to know if this will be updated to support 1.10
Thanks Robert
as for a 1.9 update, anyone willing to work on it?
what needs to be done: mainly just adding new items and updating the default item pack. the .php file is just a specially formatted text file. figure out the item id's for new items and add the information to that file, and find or make some icon images, these can usually be found online. all images the same size and with a transparent background. changes to the java part of the plugin usually aren't needed, except for bug fixes. if anyone wants to submit a bug fix pull request, keep it simple and clean and maybe it'll be as easy for me as a single click to accept and merge.
if you do submit a pull request on github, please keep it clean and properly formatted and free of errors. keep it focused on the intended changes and only change what needs to be changed. follow the existing format and be careful and maybe we can have a smooth pull request and a new update to the plugin.
I did want to improve the economy support. this is some fun code to write, I worked on it more than once, but I've never submitted it to the master branch. it does make many changes all over the code, so as fun as it is, it must be done right to avoid breaking things. basically a scheduled task on the java side to accept transactions from a queue database table, and update a cache of the players current balance in the players database table. on the php side, check the players cached balance to be sure they have enough, then submit a + transaction to the queue for the seller and a - transaction for the buyer.
anything else for the todo list? who wants to help with what? send me a pm or just send a pull request.
@yaralola
if you're having trouble connecting to mysql, and you're sure you set the host/user/pass correct, my guess is you're connecting to a remote server. if you are, then you must set the ip address of the remote server in mysql in the allowed remote hosts. by default mysql will only allow connections from localhost 127.0.0.1 and anything else you must explicitly set.
@MTubeZ
@samueli5750
do you have any suggestions to make the /wa password command more user friendly? going back to the old way the command worked is less secure, so not an option to go back.
@MrFrostmaul
hello mr frost, I don't think this has been asked specifically before. yes, you can change the names of items or the icon images to anything you want. if I remember this right, items that are renamed in game will also display on the website and will restore to the item when withdrawn.
the tekkit item packs were an incredible amount of work to put together (thank TheNytangel for his hard work) but sadly as soon as the next version of tekkit came out, the item pack was far outdated. it becomes a huge task to keep that many items updated. I looked into automating it, to generate the lists of items and the icon images, but a bit more complicated than it sounds. to generate the images, you can't just copy and paste from the sprite sheets. many items have complicated geometry, which means we need a client mod to find and call the right class methods in the running mods themselves, generate the item icon image, then save it to a file. once this is done, it would be easy to generate new item packs for the latest mod-pack versions, or even for custom texture packs. a few clicks and upload to the web server. but getting there is difficult.
@tazmast3r
there's a setting in the WA_Settings table of the database. look for the language line, I think the setting is fr for french, then you'll need to restart the mc server. the website will update to those changes immediately, although the multi-language feature hasn't been finished on the website.
@tahrll
is there a bug ticket open for this? not sure when I can get around to looking at this, maybe someone else can.
Help me!!! I have the mysql settings put in correctly and it says that i can 't connect but the website does connect
Hello,
plese fix the Server-Shop, it comes some troubles when I will sell or buy items on it. When I will buy anything it comes that trouble:
MySQL ERROR - File: /var/customers/webs/ni892414_3/webauctionplus/inc/classes/logSales.class.php Line: 30 Column 'sellerId' cannot be null
INSERT INTO `WA_LogSales` ( `logType`, `saleType`, `timestamp`, `itemType`, `itemId`, `itemDamage`, `itemTitle`, `enchantments`, `sellerId`, `buyerId`, `qty`, `price`, `alert` ) VALUES ( 'sale', 'server', NOW(), '', 264, 0, 'Diamond', '', NULL, '1', 1, 200, 0 )
When I try to sell anything it comes that trouble:
Fatal error: Call to a member function setItemQty() on a non-object in /var/customers/webs/ni892414_3/webauctionplus/inc/classes/servershop.functions.php on line 237
Plese fix it or say what I had done wrong.
Matze
Hello Do you update for a 1.9 version and are you working on a update for the website (maybe new features?)