CitiTraders2
CitiTraders
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
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 new text to localization file.
- Verify Towny support
Credits
- tehbeard - Original Author
- tenowg - Past Maintainer
- twillen - Current Maintainer
You support Towny Banks. Any plans on support for Factions banks, or is there a way already?
Sorry for my extend hiatus, but 2.0.6 has been uploaded.
Removed the display of item stack size on the main sale window.
Also added the ability to right transactions to the server log file. This option can be turned on via the configuration file.
Also tonight I've submitted a change to the Citizens 2 mod and as of build 798 written books will persist through server reloads.
@TW1STaL1CKY
Not sure what would do that. Start with the simple things like using /trader cancel, re-logging, and if it affecting everyone on your server, restarting the server. Also think over and see if any other mod updates / installs my be affecting it.
I love this plugin but it's just stopped working for me? Right-clicking and left-clicking a trader doesn't do anything. I'm able to give them the 'stockroom' and 'wallet' traits correctly, running commands that need to right-click on a trader shows the dialog but right-clicking the trader doesn't complete the action or end the command.
I use 'craftbukkit-1.5.1-R0.2' and the latest 'Citizens 2'. Any help?
@T3v3z98
I know what your saying - let me clarify this - right clicking on a trader is not opening up the sell screen... so players cannot sell anything to a trader. The trader just looks dumbly at you as if he is not set as a Trader at all - right click works fine except for the already noted issue showing stack quantities.
-Solved... obviously the selling function hooks into the coding for PVP - enable PVP on your server and restart it.
Me not working left click
Hello, I wan't to add it plugin to server, but I wan't to now - server will be filled with a lot of lag or not a lot of lag ?
@Twillen
Well, as long as it works I'm all ok with it. I loike this plugin to much to care. :P
One more question thought.
"BetaMetaDataSupport true will allow for written books and renamed items. These items will work until the server is reloaded."
What does the above actually mean? Does it mean that if I try to sell a written book it will be wiped when the server does it's daily restart?
@pongleung
Thanks for using github as well, I think this is a strait forward addition that I'll add.
@ursak
Yea, but you can just ignore the error if its still happening.
will this plugins going to adding a trading log between npc and players?
@Twillen
Ah, but I guess this update need bukkit 1.5.x? :S
@ursak
Looks like the older jars I don't like the a in the new file. I've gone ahead and removed the a out of the last upload and this issue should no longer happen.
Running a MCPC+ bukkit 1.4.7 server and CitiTraders 2 worked but now I keep getting these errors in the console. Anyone know why?
I get the error once every hour and for each error the numer at the end of "pool-1-thread-#" is higher than before. At a new start it's always a 4.
@x3nec I'm not sure how much cleaning up I can do. I do want to fix the display of quantity on the first screen, and make sure only 1 stack shows. Maybe I'll make it a configuration option for just 1 or count of all. As far as shorting, the best I could do is sort the sell price list by item id. What happening is it is filling the screen by going from first entered price to last entered price item, and only displaying items that are in stock. I believe this order persists during saves, though I have not fully tested it.
@vivalaminecraft
I'll look into improving the display of sale prices / buy prices in time. With the way the items are moved around and compared I'm unsure of how much of the hover over text I can change with out breaking everything.
I don't have much spare time this month, so it'll be a while.
@manosteele
There is an issue with skins not loading, but I'ts not an issue with CitiTrader. I may be an issue with Citizens, but most likely its an error with the Minecraft skin server.
Why don't traders made with /trader create have the custom skin that is assosiated with its name
Is it perhaps possible to display the price of the items and what not when you hover over them? Using the enchanting api? By that I mean the api that allow items to be renamed....e.g. using the anvil to rename swords and mob eggs I've seen it done on a few things. Maybe even edit the back button (arrow) etc...I think I've seen things having the ability for items to be renamed but I could be wrong
@Ratkoon
I found the chest shop bug when implementing trap chests and when 2.0.5 is back up the bug you described has be resolved. I thought I had uploaded the newest version Monday, but it has yet to be processed. I will upload it again tomorrow if it dose not appear before then.
For the enchanted items, all prices are set for unique item stacks. Factors that make items unique include there enchants, repair cost(how many times they have been reforged), and item name, and durability. At this time It would be to time consuming to try and update the mod to create a way to make a global price for all of an item (such as tools, potions). Once again there is better support for some of these items in 2.0.5.