Chest Kits
This plugin allows the creation of kits that are actually chests. When you use the /ckit KIT command, you are given 1 chest that contains the kit items. When placed into the world, the chest will contain all of the items that belong to that kit.
This plugin was created in response to a plugin request on the bukkit forums available at: http://forums.bukkit.org/threads/chest-kit.177383/
Features
Create custom kits to give to new players or whoever you want! Supports all sorts of fancy item properties, such as enchantments, display names, lore, etc. You can save your kits to the configuration file in-game. No need to mess with the configuration file unless you really want to.
Commands
- /ckit - Displays the proper want to use this command. See below.
- /ckit KITNAME - Gives you the kit named KITNAME
- /ckit create KITNAME - Creates a new kit named KITNAME. The items in the kit will be all of the items currently in your inventory.
- /ckit cooldown KITNAME COOLDOWN - Gives the existing kit named KITNAME a cooldown of COOLDOWN milliseconds (1000 = 1 second).
- /ckit delete KITNAME - Deletes the kit named KITNAME
- /ckit give PLAYERNAME KITNAME - Give PLAYERNAME the kit named KITNAME.
- /ckit save config - Save the currently defined kits to the configuration file.
All of the commands above can be run from the console by specifying a target player as follows:
- /ckit TARGETPLAYER (rest of command)
Examples:
- /ckit finalfred KITNAME - Gives finalfred the kit named KITNAME.
- /ckit finalfred create KITNAME - Creates a new kit named KITNAME that contains whatever finalfred's inventory contains.
- /ckit finalfred delete KITNAME - Deletes the kit named KITNAME.
- etc.
Permissions
- ckit.create - Allows you to use the /ckit create command (see above). Defaults to OP.
- ckit.cooldown - Allows you to use the /ckit cooldown command (see above). Defaults to OP.
- ckit.delete - Allows you to use the /ckit delete command (see above). Defaults to OP.
- ckit.save - Allows you to use the /ckit save command (see above). Defaults to OP.
- ckit.give - Allows you to use the /ckit give command (see above). Defaults to OP.
- ckit.get.* - Allows you to get any kit by using /ckit KITNAME. Defaults to OP.
- ckit.get.KITNAME - Allows you to use /ckit KITNAME. You will have to give your users this permission if you want them to spawn their own kits.
Configuration
- kits - A list of the names of each kit
- kitcooldown - A pseudo-mapping of kit names to their cooldowns in the format of a long integer. The kit "meow" will have its cooldown saved as "kitcooldown.meow"
- kititems - A pseudo-mapping of kit names to the items contained in a kit. The kit "meow" will have its item list as "kititems.meow". The list itself is a serialized list of org.bukkit.inventory.ItemStack.
I highly recommend not changing the configuration file. It's more trouble than it's worth unless you really know what you're doing. The in-game commands should suffice.
One feature you may like is that creating a kit, saving it, then deleting it will leave it's items definition in the configuration file. You can re-create the kit by manually adding the kit name back to the "kits" configuration item and it will retain all of the items it used to have. This may be useful if you accidentally delete a kit.
Enjoy!
-
View User Profile
-
Send Message
Posted Nov 10, 2013@xH3LLRAIZ3Rx
I went ahead and added cooldowns, since that is a pretty popular feature for kits.
Regarding a preview GUI, that sounds interesting but is it really needed? I mean the only reason to preview a kit instead of just placing it down is if you're not sure if you want to use up your cooldown period? In the case where you "can't" place a chest down to view the kit, well, then getting the kit isn't going to be any help to you anyway - no need to preview, since you already know there's no point.
-
View User Profile
-
Send Message
Posted Nov 9, 2013@FinalFred
as in Preview GUI, Use a Chest GUI For Previewing the kit, and i want the cooldowns to be like where the player has to wait a amount of time before getting the kit again
-
View User Profile
-
Send Message
Posted Nov 8, 2013@xH3LLRAIZ3Rx
What are you referring to by "Preview GUI" anyway? As far as I'm aware you can't add GUIs to Bukkit, unfortunately. Can't wait for the offical modding API to fix issues like that :)
-
View User Profile
-
Send Message
Posted Nov 8, 2013I could add cooldowns that reset everytime the plugin gets reloaded (i.e. server restart). Is that good enough for your purposes?
-
View User Profile
-
Send Message
Posted Nov 7, 2013@MineCraftler4Live
exept im going to use this in a GUI
-
View User Profile
-
Send Message
Posted Nov 7, 2013@xH3LLRAIZ3Rx
Hey bro, With the plugin ServerSigns you can set a cooldown on the sign :-)
-
View User Profile
-
Send Message
Posted Nov 5, 2013can you add cooldowns? and possibly a Preview GUI for kit