SimpleKits
SimpleKits
The project was moved to spigotmc.org:
Simple-Kits on SpigotMC.org
Sources on BitBucket (Development-Branch: tobias-dev)
Description:
Define item-sets with ease. Fully configurable with config-files.
Download:
SimpleKits v2.3 - Deleted
SimpleKits v2.2 - Deleted
Changelog:
3.0
- See SimpleKits v3.0
2.4
- Added /kit info [kitname] command to recive an information about the kit
2.3
- Added option to disable permission-checking
2.2
- split the commands(/kits to list all kits, /kit [kitname] to recive the kit)
2.1
- made the configuration of potions easier
2.0
- new configuration system
- automaticly creating permissions
- New: editable error messages
- New: kits with cooldowns
- New: weapons and armor with enchantments
- New: specific slots (helmet, chestplate, leggings, boots or simply an id) (if an item is in slot, it's not deleted (just moved to the next free slot))
- New: amount of an item can be bigger than 64
- New: checking for inventory space (not simply dropping items on floor)
1.0
- Release
Hello? A question
Kits Are By Worlds?
I mean, that in the world example the world Lobby When you run the command / kits In the world of lobby do not appear and say that there is none but in confi or do by nature in the world pvp if you have Kits?
If you did not understand me, I mean that each world has separate kits like a plugin that leaves your objects in a world and gives you yours from the lobby
If you did not understand me, I'll give you a clearer example
World: PvP
Kits:
-Initial Kit
World: Lobby
Kits:
-None
PLAYER: Pond / kit in the world lobby to kill in the parkur pvp in the lobby jejejejeje / initial kit
running
running
running
In This World No Kits
Player: mmm if I go to the world pvp?
Player: / Initial Kit
You have received the Initial Kit
Player: Ahh each world has its separate kit
Hello thestone_yt,
currently the functionality you requested is not supported.
Since I currently do not have time to develop this plugin, you will need to implement this feature by yourself.
You can find the source code on bitbucket:
You can find it here:
https://www.spigotmc.org/resources/simple-kits.13591/
Greetings,
BukkitDevUser
@XPassw0rd
As I already wrote: This plugin (or the actual version of it) is outdated. I'll update it soon ... This will include metadata-handling and other new features.
AWESOME PLUGIN EXCEPT FOR 1 THING: THERE IS NO META DATA???????
@iyanzakai
As I already wrote: I am completly rewriting this plugin. This error for example won't exist in the new version. Just wait a little bit longer. I'm currently working on it.
When I reload my server after adding a kit, it loads the kit fine! But when I do /kits, or /kit January (The name of my kit), It said There was an error in the game, and the console had this error:
[Server thread/INFO]: iyanzakai issued server command: /kits
[23:05:45] [Server thread/ERROR]: null
org.bukkit.command.CommandException Unhandled exception executing command 'kits' in plugin SimpleKits v2.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:544) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
Caused by: java.lang.ClassCastException java.util.LinkedHashMap cannot be cast to me.bukkitdevuser.simplekits.Kit
at me.bukkitdevuser.simplekits.SimpleKits.getKitCooldown(SimpleKits.java:434) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.hasKitCooldown(SimpleKits.java:418) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.hasPlayerCooldown(SimpleKits.java:448) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.listKits(SimpleKits.java:402) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.onCommand(SimpleKits.java:151) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
... 13 more
[23:06:10] [Server thread/INFO]: iyanzakai issued server command: /kit january
[23:06:17] [Server thread/INFO]: iyanzakai issued server command: /kit January
[23:06:17] [Server thread/ERROR]: null
org.bukkit.command.CommandException Unhandled exception executing command 'kit' in plugin SimpleKits v2.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:544) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
Caused by: java.lang.ClassCastException java.util.LinkedHashMap cannot be cast to me.bukkitdevuser.simplekits.Kit
at me.bukkitdevuser.simplekits.SimpleKits.getKitCooldown(SimpleKits.java:434) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.hasKitCooldown(SimpleKits.java:418) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.hasPlayerCooldown(SimpleKits.java:448) ~[?:?]
at me.bukkitdevuser.simplekits.SimpleKits.onCommand(SimpleKits.java:171) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-13-g4a588b7-b2989jnks]
... 13 more
And this is my kits.yml
#kitname (permissions is automatically added)
January:
description: "Kit that you can use EVERY JANUARY!"
cooldown: 9999 #cooldown time in seconds (1 Day = 86400)
items:
- {id: DIAMOND_HELMET, amount: 1, slot: helmet, enchantments: {type: PROTECTION_ENVIRONMENTAL, level: 4}}
- {id: DIAMOND_CHESTPLATE, amount: 1, slot: chestplate, enchantments: {type: PROTECTION_ENVIRONMENTAL, level: 4}}
- {id: DIAMOND_LEGGINGS, amount: 1, slot: leggings, enchantments: {type: PROTECTION_ENVIRONMENTAL, level: 4}}
- {id: DIAMOND_BOOTS, amount: 1, slot: boots, enchantments: {type: PROTECTION_ENVIRONMENTAL, level: 4}}
- id: DIAMOND_SWORD #see http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
amount: 1 # the amount (can be bigger than maximal stack size)
slot: 0 # the slot (0 to 25 or helmet/chestplate/leggings/boots)
enchantments: #see http://jd.bukkit.org/rb/apidocs/org/bukkit/enchantments/Enchantment.html
- {type: FIRE_ASPECT, level: 2}
- {type: KNOCKBACK, level: 2}
- {id: TORCH, amount: 128}
- {id: COBBLESTONE, amount: 128}
- {id: POTION, amount: 3, effect: {type: SPEED, level: 2, splash: true, extended: true}} #see http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionType.html
- {id: POTION, amount: 3, effect: {type: INSTANT_HEAL, level: 2, splash: true, extended: true}}
- {id: DIAMOND_PICKAXE, amount: 1, slot: 0, enchantments: [{type: DURABILITY, level: 3}, {type: LOOT_BONUS_BLOCKS, level: 3}, {type: DIG_SPEED, level: 5}]}
- {id: DIAMOND_PICKAXE, amount: 1, slot: 1, enchantments: [{type: DURABILITY, level: 3}, {type: SILK_TOUCH, level: 1}, {type: DIG_SPEED, level: 5}]}
- {id: STONE_HOE, amount: 1, slot: 2, enchantments: [{type: DURABILITY, level: 3}]}
- {id: DIAMOND_AXE, amount: 1, slot: 3, enchantments: [{type: DURABILITY, level: 3}]}
- {id: DIAMOND_SPADE, amount: 1, slot: 4, enchantments: [{type: DURABILITY, level: 3}, {type: SILK_TOUCH, level: 1}]}
@ethanajn
Sure. I'll completly rewrite the plugin (Because there seems still to be interrest in a new version) (Including a new config-system, simpler item-/enchantment-/potionnames). I will also add the
and
commands as well.
can you change the enchantments so that sharpness is sharpness
This is awesome! just if you could do /kit create (kitname) and the kit has what ever is in your inventory. do NOT STOP
@DynamicKills
The spawned mob depends on the metadata of the egg. Here's a list with the mobs and the corresponding metadata: Link
someone know how to add mob eggs to the kits on the materials link I have found a "MONSTER_EGG" and "MONSTER_EGGS" but when I add it to a kit I got an egg that don't spawn anything. Someone know how to do it?
Happy Holidays everyone!
Are kits made through a config?
because it would be kewl to just type /kit create <kitname>, and it creates a kit using whatever's in your inventory.
@kvgeorge1
The type you are searching for is named "INSTANT_DAMAGE". There is no potion-type named harm. I added the link with all potion-types: http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionType.html
@kvgeorge1
Please post the whole error on Pastebin and we'll see if we can fix that. :)
When I attempt to add a potion of instant damage (TypeEffect. HARM), I get an exception thrown.
Here is my config line in kits.yml: - {id: POTION, amount: 3, effect: {type: HARM, level: 2, splash: true, extended: true}} #see http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionType.html
And here is the stack trace: 11:43:05 [INFO] [SimpleKits] Enabling SimpleKits v2.4 11:43:05 [WARNING] [SimpleKits] Could not load configuration! 11:43:05 [SEVERE] Can't construct a java object for tag:yaml.org,2002:Kit; exception=Cannot create property=items for JavaBean=me.bukkitdevuser.simplekits.Kit@60ec0b80; Cannot create property=effect for JavaBean=me.bukkitdevuser.simplekits.Item@7f8a8bfa; Cannot create property=type for JavaBean=me.bukkitdevuser.simplekits.PotionEffect@417d26fc; null in "<reader>", line 37, column 12: herobrine: !!Kit ^
11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:183) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:326) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:143) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:307) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:459) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:183) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:142) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:128) 11:43:05 [SEVERE] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) 11:43:05 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:423) 11:43:05 [SEVERE] at me.bukkitdevuser.simplekits.SimpleKits.onEnable(SimpleKits.java:531) 11:43:05 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 11:43:05 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 11:43:05 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 11:43:05 [SEVERE] at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugin(CraftServer.java:282) 11:43:05 [SEVERE] at org.bukkit.craftbukkit.v1_6_R1.CraftServer.enablePlugins(CraftServer.java:264) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.MinecraftServer.l(MinecraftServer.java:313) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.MinecraftServer.f(MinecraftServer.java:290) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.MinecraftServer.a(MinecraftServer.java:250) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:151) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:391) 11:43:05 [SEVERE] at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582) 11:43:05 [SEVERE] Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=items for JavaBean=me.bukkitdevuser.simplekits.Kit@60ec0b80; Cannot create property=effect for JavaBean=me.bukkitdevuser.simplekits.Item@7f8a8bfa; Cannot create property=type for JavaBean=me.bukkitdevuser.simplekits.PotionEffect@417d26fc; null 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) 11:43:05 [SEVERE] ... 22 more 11:43:05 [SEVERE] Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=effect for JavaBean=me.bukkitdevuser.simplekits.Item@7f8a8bfa; Cannot create property=type for JavaBean=me.bukkitdevuser.simplekits.PotionEffect@417d26fc; null 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:183) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:277) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:248) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:510) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:183) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) 11:43:05 [SEVERE] ... 24 more 11:43:05 [SEVERE] Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=type for JavaBean=me.bukkitdevuser.simplekits.PotionEffect@417d26fc; null 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:299) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:183) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:296) 11:43:05 [SEVERE] ... 31 more 11:43:05 [SEVERE] Caused by: java.lang.reflect.InvocationTargetException 11:43:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:43:05 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 11:43:05 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 11:43:05 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:616) 11:43:05 [SEVERE] at org.yaml.snakeyaml.introspector.MethodProperty.set(MethodProperty.java:40) 11:43:05 [SEVERE] at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:297) 11:43:05 [SEVERE] ... 34 more 11:43:05 [SEVERE] Caused by: java.lang.IllegalArgumentException: No enum const class org.bukkit.potion.PotionType.HARM 11:43:05 [SEVERE] at java.lang.Enum.valueOf(Enum.java:214) 11:43:05 [SEVERE] at org.bukkit.potion.PotionType.valueOf(PotionType.java:3) 11:43:05 [SEVERE] at me.bukkitdevuser.simplekits.PotionEffect.setType(PotionEffect.java:18) 11:43:05 [SEVERE] ... 40 more 11:43:05 [INFO] Server permissions file permissions.yml is empty, ignoring it 11:43:06 [INFO] Done (3.613s)! For help, type "help" or "?" 11:48:05 [SEVERE] Exception in thread "Thread-7" 11:48:06 [SEVERE] java.util.ConcurrentModificationException 11:48:06 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810) 11:48:06 [SEVERE] at java.util.HashMap$KeyIterator.next(HashMap.java:845) 11:48:06 [SEVERE] at me.bukkitdevuser.simplekits.SimpleKits.clearCooldowns(SimpleKits.java:636) 11:48:06 [SEVERE] at me.bukkitdevuser.simplekits.SimpleKits$CooldownCleanThread.run(SimpleKits.java:62)
@nato_potato
Not yet, but maybe in future.
Pretty happy with this plugin, was a little disappointed though when i tried to set the items names and it broke, is there a way to set an items display name?
@JakeForge
@JakeForge
What YAML editor are you using?
If you're using Notepad++, then....
Whenever you make a new line in Notepad++, it usually makes tab. Do a backspace until you reach the start of the line, then write the kits in.
If this doesn't work, message me.
@RattyTiger14
There is no enchantment called "sparpness". I added a link with a list of all possible enchantments. Why don't u use it?
http://jd.bukkit.org/rb/apidocs/org/bukkit/enchantments/Enchantment.html