Skip to content
Snippets Groups Projects
Commit 59471524 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

* woops

parent 49815299
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,8 @@ public class UltimateKits extends JavaPlugin {
String name = kit;
HashMap<Material, Integer> items = new HashMap<Material, Integer>();
for(String item : this.getConfig().getConfigurationSection("kits." + kit + ".items").getKeys(false)) {
String[] item1 = item.split(":");
items.put(Material.getMaterial(Integer.valueOf(item1[0])), Integer.valueOf(item1[1]));
items.put(Material.getMaterial(Integer.valueOf(item)),
Integer.valueOf(this.getConfig().getInt("kits." + kit + ".items." + item)));
}
Material helmet = Material.getMaterial(this.getConfig().getInt("kits." + kit + ".helmet"));
Material chestplate = Material.getMaterial(this.getConfig().getInt("kits." + kit + ".chestplate"));
......
......@@ -6,7 +6,7 @@
kits:
example:
items:
- 1:3
1: 3
helmet: 310
chestplate: 311
leggings: 312
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment