CitiTraders
CitiTraders
Currently working on CitiTraders 2 - Fixing alot of hold over errors and issues.
As I get a chance to update I will do on this page CitiTraders2
Cititraders enables your citizens 2 NPCs to act as traders, buying and selling goods. It works good for admin shops and player shops alike. All traders use the inventory interface for buy/sell and players don't need any commands to interact with Traders.
You can see more details at CitiTraders Wiki
Issues: Issues at JIRA
Recommended Builded: RC-5 Release Candidate
Development Builded: Jenkins lastSuccessful Build
Setting Up A Trader
Interacting
- Right Click the NPC
- Opens the selling window, here the players will select what item they wish to purchase from the NPC
- Right Click the Item
- displays a price of the item
- Left Click the Item
- Opens the final sales window, from here a player can right click again for stack price, or left click to purchase the stack
- Left Click the NPC
- this will open the buy window for NPC, currently players need to just drag and drop items to the inventory and close the window, unpurchased items are dropped if NPC can't purchase these items (soon they will not be able to be dropped into the inventory if NPC can't purchase them)
Adding Stock
- Right Click the NPC with a BOOK in your hand
- This will open an inventory screen where you can place any items you want to sell, if an ADMIN shop these items will not be reduced with sales, but you still need to put 64 (or max stack) of an item to get a full listing of amount in sales window.
- Linked Chests
- If you have linked chests, adding stock is as easy as opening the chest that is linked to the trader, and adding what you want to it.
Commands
Commands Permissions are currently listed here for CitiTraders 2
Permissions
Limits/Profiles
Installation
Just place into the plugins folder and restart the server, make sure you have a working version of Citizens2 and Vault installed first
Requirements
- Citizens 2
- Vault with economy plugin such as BOSEconomy and permissions such as zPermissions.
- (Optional) Towny
TODO
- Add shop managers and assistants
- rewrite selltoplayer to allow for easier buystack and to improve performance
Credits
- tehbeard - Original Author
- tenowg - Current Maintainer
I have Updated to 1.4.2, in the form of a rewrite, Not every aspect is updated yet, but it should be a working copy. Some changes I have made:
First upload of CitiTraders 2 Beta
type (mob)Please use this with care, backup everything before you install it... All things should convert and I have tested most of the features, but as I am a single person there are things I am going to miss.
Commands have been updated to a new standard, and some issues may arise, please post on my jira any issues that you find.
The update is currently waiting for approval, you can use my jenkins link above to download the lastest build, the name is CitiTraders BETA-2
@fisherman77
I haven't looked into this plugin yet.. let me finish rewriting CitiTrader 2 and I will look into it.
@oARCHONo
it looks to me as if CitiTraders isn't reloading correctly. What version are you using? don't use BETA-2 as it is a rewrite that isn't ready for production.
Everything works great with this plugin, except after a server reboot, then all of the shop inventories are empty. I looked in the config files and the inventories are still there... but not in game. Have you heard of this before?
error: 2012-10-31 12:23:17 [SEVERE] [Citizens] Skipped broken or missing trait 'stockroom' while loading ID '0'. Has the name changed? 2012-10-31 12:23:17 [SEVERE] [Citizens] Skipped broken or missing trait 'wallet' while loading ID '0'. Has the name changed?
Do you plan on adding support for HeroStronghold super-region (town) banks?
@MalkoRussia
I was going to not add this feature. But I have been thinking. And I believe I have found aa way to make it work. But don't expect anything right away. Iam sstill moving and don't have ffull internrt yet.
Hi, @tenowg , great work! This is amazing, but what about servers without economy system plugins? Do you plan to add barter trading system in the future? I think it'll be great addition to your project. As UI you can use villagers trading interface from Minecraft 1.3 (Simple example from MCEdit filters with villager - http://youtu.be/HU91dGvNAOM ).
@WingedSpear
I have been using my plugin ExtremeCharacters to prefect my localization system... once that is done all I need to do is plug that into citizens :)
@Sungee
I will add a return statement for this, but "/trader wallet" isn't a command, "/trader wallet give" or "trader wallet take" or "/trader wallet balance" are.
@bwinkl04
There is a setting per world, world.setPVP() in bukkit, if a plugin dev is lazy they use this setting to disable PVP for the world, in doing this it cancels EntityDamageEvent (as in it is never fired) this is what Citizens, cititraders, sentry, uses to register left click.. not even sure if there is another way.. this breaks citizens/cititraders/denizens/sentry.
If you have a plugin that uses this method, remove it, unless I can find a way to remove this problem.
Plugins such as Multiverse use this method...
So, I figured out the issue with left click not working. It is completely unrelated to Citizens. The newest release of Multiverse set all of my worlds to PVP - false. This also deactivated the left click for all sentrys and traders. Go into the multiverse config and reset the PVP to true and everything works fine.
Same issue as others, I have a trader with an admin wallet. I (and others) can buy from him without issue, but cant sell to him. Nothing happen when we left click the NPC. I tried removing him and recreating him, and the same thing happens. This issue for me is new since the latest version yesterday.
Edit: This seems to be with all of citizens. I can't fight my sentrys either.
No translations get D:, i was waiting till one update for translations and still nothing U_U
Hey! When I use the command "/trader wallet", I'm getting an error:
I have uploaded a new version, it needs to be approved, you can use my Download links in the post to get lastest versions... please use my Jira link for faster responses.
@doublecow1
@Weedchrist
This is a rare issue that can't be reproduced. Without error messages or other indications of what is going wrong I can't do anything about it. Try upgrade to the newest build of Cititrader.
@alyis
How far away is the chest
Same problem here as doublecow1, leftclicking the npc is like punching the air... any ideas?
I can buy items but I cannot sell items!!
I've linked a chest to my Trader and when I right click him he is not selling anything. Does this not work with doublechest?