use of pixelssky.objects.Island in project PixelsSkyblock by dudullle.
the class Inventories method getIslandsList.
public static Inventory getIslandsList(SPlayer p) {
Inventory inv = Bukkit.createInventory(null, ((IslandsManager.islands.size()) / 9 + 1) * 9, "§6§3Liste des îles");
for (Island i : IslandsManager.islands) {
ArrayList<String> lore = new ArrayList<String>();
lore.add("§e§nNiveau de l'île :§b " + i.getLevel());
lore.add("§e§nNombre de membres :§b " + i.getMembers().size());
lore.add("§e§nDifficulté :§b " + i.getData("difficulty").getData());
if (p.getIsland() == i) {
inv.addItem(Items.get("§5§l▶Votre île", Material.STAINED_CLAY, (byte) new Random().nextInt(15), lore));
}
}
return inv;
}
Aggregations