Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

collapse

* Notifications

* Rainbow Downloads

* Recently Modified

Title Modified
VNAP - Authentication Pl... by Algoru December 25, 2017, 03:33:50 AM
Pl3xPlugins (updated) by CodeCrafter47 December 21, 2017, 04:47:31 AM
MultiWorld by CodeCrafter47 August 03, 2017, 01:16:59 PM
Shared Packages by JD9999 June 02, 2017, 05:20:12 PM
LagControl v0.1 by UnknownUser500 April 13, 2017, 11:05:17 PM
FirstJoinMessages v0.1 by UnknownUser500 February 09, 2017, 07:44:49 AM
aConfigAPI by UnknownUser500 February 09, 2017, 07:28:52 AM
PluginManager v0.1 by UnknownUser500 January 21, 2017, 08:18:32 PM
Transporter by JD9999 December 28, 2016, 02:53:40 PM
BukkitToRainbow code con... by UnknownUser500 December 27, 2016, 09:52:17 PM

 



ChestShop v0.1
ChestShopV0.1.zip
Filesize: 128.63kB  Views: (1868)  Downloads (383)  Last Download: April 10, 2018, 06:15:19 AM 
Previous Download | Next Download
Description:
ChestShop v0.1


Description:
This plugin allows admins and user with the rights "chestshop.place" to change a simple chest to a shop.
The shop will display all previous sold items and their prices. To buy or sell items, simply click it. It will charge your Rainbow economy balance.
For now you can only sell whole stacks of items.
Prices depend on how many items, if it is sold or bought, if it has any enchantments and how damaged it is. The base-price for each item can be edited in the shipped config.ini file within ChestShop folder. Each extra charge (eg. sell) can be changed within that ini file. If you have additional items on your server, you need to add their official name (eg. minecraft:slab=200) to this ini or it will be free to buy and sell.
The commands this plugin allows are the following:
/chestshop add -> adds chest to the list of shops
/chestshop remove -> removes chest from the list of shops
Alias: /cs

How to install:
1) Unpack the zip file and place the jar file and folder with ini file it in your rainbow plugin ordner (plugins_mod)
2) restart your server

For any future releases, additions or any other suggestion please leave comment or PM me.

Changelog
5.5.2015: Initial Release v0.1
7.5.2015: fixed some typos
Posted by: Poehli June 07, 2015, 10:28:59 AM


Linking Codes
Direct Link

Comments
Poehli
Member
*

Reputation: +2/-0
Offline Offline

Posts: 23


View Profile
June 07, 2015, 06:32:20 PM
I would always choose either "Atom", "Sublime 2/3" (though it's free, there is an annoying popup if you want to purchase, otherwise a great editor), "Notepad++", etc. it doesn't really matter which one to use. But if you start developing any language (besides Java) I would suggest "Atom", that's what I'm using right now. It's highly configurable and has a plugin for almost any language (at least on my Linux machine)

JD9999
Plug-in Maker
Hero Member
****

Reputation: +45/-0
Offline Offline

Posts: 754


View Profile
June 07, 2015, 04:41:41 PM
Ok, thanks! All my problems fixed.
What file editor should I use?

Poehli
Member
*

Reputation: +2/-0
Offline Offline

Posts: 23


View Profile
June 07, 2015, 10:10:39 AM
Quote
I saw the config file had minecraft id's, but if it is easier you can use the MC_ID class.

it would be possible, but the MC_ID is actually just the same, as the minecraft id. You really want the config to be human readable and using just ids wouldn't do it. I do convert the name to MC_ID, so no problem there ;)

Quote
Can your description please be more detailed? E.g. when the shop is used? I'm not sure when the shop is used. I guessed the command first go, but that should be there. Also, when the /chestshop command is entered, it displays "cheststore (add/remove)" instead of "chestshop (add/remove)", that would be good.

1. Point: (eg. when the shop is used) I don't know what you want to know.
2. Point: sure I'll change that, sorry about that.
3. Point: -"- ;)

Quote
One last suggestion: Is it possible to add lines to the config so that each item is on a different line?

actually that's the way it should be. Are you using windows notepad? If so, don't :P I did unix formating which this editor is not able to read (stupid thing)

Quote
One thing I think would be very good (and I do this with all my plugins) is to have a seperate forum post for your plugins. Then I can explain my ideas in more detail.

Yep, will do that. I'll answer your programming specific questions there :)

JD9999
Plug-in Maker
Hero Member
****

Reputation: +45/-0
Offline Offline

Posts: 754


View Profile
June 06, 2015, 03:13:48 AM
Great start! So how does it work?
I saw the config file had minecraft id's, but if it is easier you can use the MC_ID class.

Can your description please be more detailed? E.g. when the shop is used? I'm not sure when the shop is used. I guessed the command first go, but that should be there. Also, when the /chestshop command is entered, it displays "cheststore (add/remove)" instead of "chestshop (add/remove)", that would be good.

What I do like, is that when you select a chest as a shop, it becomes empty, but when it is deselected, everything in there becomes what it was before. I really like that.

One last suggestion: Is it possible to add lines to the config so that each item is on a different line?

What I would really like to know, is why a .config instead of a .txt or .csv? Unfortunately, I only know how to use a .txt, cna you tell me how to use the other file types? Please? I assume you would declare the filename the same, but the writing / reading would be different.

One thing I think would be very good (and I do this with all my plugins) is to have a seperate forum post for your plugins. Then I can explain my ideas in more detail.

Otherwise, GREAT WORK!!! :) :) :) :D


Add Comment
Comment: 
Your comment will not appear until it has been approved.