Transactions
Transactions (2.0):
Transactions lets you buy and sell items with offers. If you want to sell an item, all you have to do is have the item/items in your inventory add an offer. Once the offer is added, players can search/browse available offers to find what they want. If they do, they can buy it from you and you get money! As of now, Vault is supported!
Features:
- Put items up for sale
- Search for offers by item name, ID or player name
- Buy items with whatever economy plugin you have that works with Vault
- Retract an offer if you want to
- SQlite support
- Permissions
Requirements:
- Vault
Known Problems:
- Fake item duping (Fake client-side items) caused by (as far as I can tell) Bukkit issues. I'm working on it.
Commands:
- /ts - Shows transactions help
- /ts list - List the available offers (ID only)
- /ts dlist - List the available offers (All info)
- /ts offer <itemID> <amount> <price> - Offer a certain number of items for x each
- /ts offer <itemName> <amount> <price> Offer a certain number of items for x each
- /ts offer <hand> <amount> <price> Offer item in your hand with a certain quantity and for x each
- /ts info <offerID> - Shows info about the offer with the given ID
- /ts buy <offerID> <amount> - Buy a certain number of items of the given offer ID
- /ts search player <player> block <block> - Search for offers matching the given item ID and given player name
- /ts search player <player> - Search for offers of a player
- /ts search block <block> - Search for offers based item name or ID.
- /ts retract <offerID> - Retracts the given offer (If you are the one that posted it)
Permissions:
- transactions.list - Allows to perform /ts list
- transactions.dlist - Allows to perform /ts dlist
- transactions.buy - Allows to perform /ts buy
- transactions.retract - Allows to perform /ts retract
- transactions.info - Allows to perform /ts info
- transactions.offer - Allows to perform /ts offer
- transactions.search - Allows to perform /ts search
Video:
This is a little outdated video. Most bugs are solved in version 2.0
@gigantictragedy Probably. It would take literally 10 seconds for me to change the command name and add an alternate download. I can do it later today if you want.
@ace1177 Update to Java 7, however when I get home I will compile it against 6 and fix the problem
Well not problem, but incompatibility.
@xtyro Update to java 7
2012-03-07 15:34:43 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R6-33-gb66156b-b2034jnks (MC: 1.2.3) (Implementing API version 1.2.3-R0.1) 2012-03-07 15:34:44 [SEVERE] Could not load 'plugins\Transactions.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/captain/transactions/Transactions : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.UnsupportedClassVersionError: me/captain/transactions/Transactions : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ... 8 more
Well I have to say I'm very impressed by this and will be putting it on my server tonight. Sad I didn't see this back when you originally posted it but guess I couldn't of used it then as I just got currency on my server.
Thank you for the video and I hope the people on my server are as excited as I am about this.
Edit: Not exactly sure what it is but something is causing the plugin to not even load up for me on my server. I have it installed but it does not appear in the plugin list or even attempt to load when I start the server.
Im interested in trying but im concerned by the video of the /ts commands. i use turnstile and they use a /ts command will this cause a problem?
@ace1177 http://www.youtube.com/watch?v=ZAYndStq_-I&feature=youtu.be Also I fixed the saving bug so you probably want to update
@ace1177 I'll make a video right now
This sounds interesting but am not 100% on how it works. Are you saying you just have an item in your inventory place the item for sale for X amount and people use a command in-game to bring up all items for sale? I'm interested in seeing a video of how this works.
Does the play have to stay online for the item to show on the list? Does the item have to remain in the persons inventory or could you place a handful of items for sale then place them in a chest so if someone buys it the item goes to them and you gain the money?
Sorry for so many questions but this could potentially make shops a thing of the past and make it where people don't have to walk all the way to a specific town to just buy items.