NotCachaaaaaaaaaa

Untitled

Mar 19th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Inventory inv = Bukkit.createInventory(null, config.getInt("Inventory-Selector.Size"), Util.ChatColor(config.getString("Inventory-Selector.Title")));
  2. for(String a : config.getConfigurationSection("Inventory-Selector.Items").getKeys(false)){
  3. int slot = config.getInt("Inventory-Selector." + a + ".Slot");
  4. String name = config.getString("Inventory-Selector." + a + ".Name");
  5. List<String> lore = config.getStringList("Inventory-Selector." + a + ".Lore");
  6. int id = config.getInt("Inventory-Selector." + a + ".ID");
  7. int amount = config.getInt("Inventory-Selector." + a + ".Amount");
  8. inv.setItem(slot, Util.createConfigItem(id,amount,name,lore));
  9. }
  10. p.openInventory(inv);
Advertisement
Add Comment
Please, Sign In to add comment