Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (String path : getConfig().getConfigurationSection("pvprewards.item.list").getKeys(false)) {
- int id = getConfig().getConfigurationSection("pvprewards.item.list" + ".id");
- int count = getConfig().getConfigurationSection("pvprewards.item.list" + ".count");
- String name = getConfig().getConfigurationSection("pvprewards.item.list" + ".name");
- ItemStack item = new ItemStack(id, count);
- item.setDisplayName(name)
- p.getInventory().addItem(item);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement