Untitled


SUBMITTED BY: Guest

DATE: May 4, 2013, 4:21 p.m.

FORMAT: Java

SIZE: 651 Bytes

HITS: 1021

  1. public Inventory Splash()
  2. {
  3. Inventory i = plugin.getServer().createInventory(null, 9, ChatColor.BOLD + "Welcome to CF2!");
  4. ItemStack welcome = new ItemStack(Material.BOOK);
  5. if(welcome.hasItemMeta()) {
  6. ItemMeta welcomeMeta = welcome.getItemMeta();
  7. List<String> wmetatext = Arrays.asList(motd);
  8. for(Iterator<String> f = wmetatext.iterator(); f.hasNext(); ) {
  9. String item = f.next();
  10. welcomeMeta.getLore().add(item);
  11. }
  12. welcomeMeta.setDisplayName(ChatColor.RESET + "Our map rotation is:");
  13. welcome.setItemMeta(welcomeMeta);
  14. }
  15. i.addItem(welcome);
  16. return i;
  17. }

comments powered by Disqus