TradeCraft-AE
Inactive
I'm sorry to have to put the state of this plugin to inactive. I simply don't have the time to put into maintaining the plugin.
Some time ago I tried adding a nice feature someone suggested. Only to find out about the item id changes. That's not a big deal for simple items. But the damage bits made defining complex items like potions/enchants/different variants of some items, quite simple. If I had more time I could invest it in this plugin. But unfortunately I don't have that time.
Added to that, I have no use for the plugin myself anymore (I don't play much and it's not used on the server I play on when I do). I mostly picked up support for this plugin because it was not maintained anymore.
If someone has a good alternative I'll be happy to mention it. Also anyone is welcome to clone the project and I'll do the same.
Features
- Make infinite shops - place gold or items in the chest, right click the sign, and watch the magic happen!
- Become entrepreneurs! Have a lot of extra goods? Create a shop to let people easily buy or sell!
- Change the currency if you don't like gold ingots.
- Localization support, you can create language files, take TradeCraft.en.lang as example and configure the language in the properties file.
Continuation/mod of mjmr89 build of TradeCraft.
Credit for the core of this mod goes to the github/forum users mjmr89 and jdiamond (injektilo on the hey0 forums). mjmr89 started this port to Bukkit, but has gone inactive. At first I just maintained a working version of the plugin. But now that plugin has officially gone inactive I decided to start a new entry myself.
Old development/discussion thread
Manual
You can read the Manual here, or the Old technical manual here.
Commands
- /tc[help] Show the TradeCraft commands a player can use.
- /tcgetcurrency Get currency.
- /tcsetcurrency [id[;data]] Set currency. To set a currency, use the id number, optionally add a data value by separating with a semicolon. Limited by permissions.
- /tcshops Displays the personal shops you have and their current inventory/gold
- /tcpshops playername Displays the personal shops of a specific player
- /tcreload Reloads the plugin (and configuration files). Limited by permissions.
- /tcplayerperms playername Debugging info if there are problems with permissions.
Permissions
- TradeCraft.canBuy Permission to buy from any shop (default: true).
- TradeCraft.canSell Permission to sell to any shop (default: true).
- TradeCraft.canMakePlayerShops Permission to make a player shop (default: true).
- TradeCraft.canMakeInfShops Permission to make infinite shops (default: op).
- TradeCraft.canDestroyShops Permission to destroy infinite or other player's shops (default: op).
- TradeCraft.canSetCurrency Permission to set the currency (default: op).
- TradeCraft.canReload Permission to reload the TradeCraft plugin (default: op).
- TradeCraft.canQueryOtherShops Permission to get a list of shops owned by other players (default: op).
- TradeCraft.canQueryPlayers Permission to show the permissions of a given player (default: op).
Note: The first three permissions are given to anyone by default. If you do not want a group or person to have these permissions, you will actively have to deny them (- -TradeCraft.canBuy for PermissionsEx for example).
Configuration
- items.yml Put all the item types and default (infinite shop) trade values you want to be able to trade in here.
- By default this is a small list, but ModernDragoness provided a complete list. You can disable either buy or sell rate by writing a rate of 0:0.
- vagrant326 made this spreadsheet that can calculate balanced values for items. Though it is written for currency-based trade plugins and will not output data compatible with the items.yml file, some admins or players might find it helpful.
- TradeCraft.data Contains all player shop data (amount of items and currency stored).
- TradeCraft.properties Several settings for the plugin, read the comments in the file for more information.
- TradeCraft.[].lang Localization files. By default only English is supported. But you can make your own translation and change "language" in the .properties file to choose to use that instead.
@Mercury92
I put it on this project page under the Files tab: http://dev.bukkit.org/server-mods/tradecraft-ae/files/11-complete-items-yml/
@lawliet555
@ArmEagle
The link is down. <Insert Panic Button Here> :*(
@QBcrusher Reading that thread it seems you've resolved the issue. It seems the file wasn't formatted right, having a few too little newlines.
I'm glad you fixed your problem.
OMG please help me...it worked fine until i added price values, now i keep getting errors like this:
10:29:54 [SEVERE] Error occurred while enabling TradeCraft vAE-1.2.5 (Is it up t o date?): null; mapping values are not allowed here mapping values are not allowed here in "<string>", line 11, column 27: buyAmount: 64 buyValue: 3 ^
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:73 3) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja va:305) at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17 9) at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par serImpl.java:563) at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java :230) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java :237) at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12 3) at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons tructor.java:121) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo nfiguration.java:60) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio n.java:143) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio n.java:109) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam lConfiguration.java:238) at nl.armeagle.Configuration.StatefulYamlConfiguration.load(StatefulYaml Configuration.java:24) at nl.armeagle.TradeCraft.TradeCraftConfigurationFile.load(TradeCraftCon figurationFile.java:142) at nl.armeagle.TradeCraft.TradeCraft.enable(TradeCraft.java:124) at nl.armeagle.TradeCraft.TradeCraft.onEnable(TradeCraft.java:99) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:228) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:970) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169 ) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
I posted the entire items.yml file here: http://forums.bukkit.org/threads/tradecraft-problems.53805/
thanks in advance
I know this plugin is pretty much the same since hmod time, but I really owuld like to ask for a little thing to be added.
When someone creates a shop, something very good would be if the plugin could spawn a deactivated redstone torch on the block above the sign. If someone buys from the shop, the redstone keeps activated until the owner withdraw the gold from it.
This is because people has tons of shops, at many locations, and there is no easy way to know if anyone bought from then. So they have to go and check every shop they got.
@TheAngryPandaTV
Ty for this, if you can make an 1.0 updated list would be more awesome :D
HEY EVERYONE!
I have a Item list that's been updated!
Download link: Link Removed: http://www.mediafire.com/?16mumav2noyeeqd
(It's just a text file)
It has everything up to 1.8 (Nothing for 1.0)
- Panda
@ArmEagle
ok thanks
@CrashNT
No, this plugin is not compatible with any *conomy plugin. People asked for it before. But there are other shop plugins that do that already.
is this compatable with iconomy? I tried setting the currency to -1 but it says -1 is not a value for currency. Any help would be greatly appreciated
EDIT: I don't know where I read that the iconomy currency id is -1.... LOL Either way, how do I get this to use iconomy currency?
@Jobsti2
Hmm, what shop are you trying to put that item in? Obviously it won't work for an infinite shop, since you set the trade values/amounts to 0.
I used the same on CB #1560 and a personal shop let my deposit the item just fine. I'll try the plugin on the Recommended Build now.
Edit: Well, it seems to work just fine in the RB #1597 too. If you still have issues I'd love to help though. So please be as specific as possible!
@ArmEagle
Well, now the items.yml actually got reviewed and accepted, the download does work. That's at least one part fixed.
@Jobsti2
I'll try that item later. I usually have little time the first few days of the week though.
Sigh, some backup, file upload got messed up by Curse again I guess. I'll re-upload the file from lawliet555.
And yes, whenever a config file gets updated by me, it will overwrite any existing files. Though that was perhaps not a great idea for the items file(s).
I'll include the German translation, thanks.
TradeCraft-AE v1.2.4, #1580
You can't deposite/buy/sell this here. So itemTypeData doesn't work yet
Download for Items-yml: 404 - File or directory not found.
And after the Update to 1.2.4, some Items from my items.yml, now have the default Values from the default items.yml! Now I have to edit all the values again... buyAmount: buyValue: sellAmount: sellValue:
And, don't miss the German Translation for the next update ;) http://dachboden-server.de/download/TradeCraft.de.lang
@lawliet555
Personally I prefer to know what I'm letting players create shops for and what values to use. That's why the .jar only includes a very small list. But I put it in the files here (in case your host goes down) for the people who want everything easily.
http://dev.bukkit.org/server-mods/tradecraft-ae/files/10-complete-items-yml/
I'll link to it in the plugin description too.
@CrashNT
Thanks, I deleted that one and uploaded it again. I hope it will keep working now.
I have created a new and complete items.yml file for your plugin. It includes both item names as well as it id support. Link Removed: http://www.mediafire.com/download.php?jxwp7j73hkzkbfe
I would like to recommend that you upload this with your plugin so that people using it do not have to create a config them selves or go through the forums looking for one.
Thx for keeping up this amazing plugin :)
Sayomie
link broken for the new .jar Thanks :)
@Sabinno
No, on Windows the \r\n may be normal. But on *nix based system normally only \n is used. And with mobile devices that market is growing rapidly. Top-notch server admins don't use windows (my personal opinion and dislike of Windows servers) and then the problem is solved :) Also the default notepad is simply useless.
Anyway, back on track. No, apparently the plugin is not compatible with 1.0 (terrible, terrible versioning) yet. I'm still hoping for people to try the plugin in 1337(1.8.1) based on the issues that were reported before.
I hope to try it out on a latest Bukkit version again tonight. I'll try to use that currency setting then. Did you try the 1.2.3 version of the plugin yet? Maybe that issue is now solved.
So you didn't write the file generator/writer yourself? I see. Well then I don't blame you. But don't all text-based files use the same format? Lastly, even the most top-notch server admin may not use a text editor like Notepadplusplus or something. E.g. me, who uses the default Windows Notepad. EDIT: Oh my, my users can't purchase anything at all 3: Config: only currency changed to 371 ; Items: default Apparently it cannot pass the event PLAYER_INTERACT to TradeCraft. Any reason why this might be happening? Is it not compatible with 1.0.0 or something?