Advertisement
Guest User

Untitled

a guest
Aug 27th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. } else if(command.getName().equalsIgnoreCase("games")) {
  2. if(player.hasPermission("autoanswer.default")) {
  3. ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (byte)2 );
  4. ItemMeta itemMeta = item.getItemMeta();
  5. itemMeta.setDisplayName("MC-IF");
  6. List <String> lore = new ArrayList<String>();
  7. lore.add("Custom");
  8. lore.add("MCInfected");
  9. itemMeta.setLore(lore);
  10. Inventory inv = Bukkit.createInventory(null, 9, "DeltaWars Network Games");
  11. inv.addItem(item);
  12. player.getInventory().addItem(new ItemStack(Material.IRON_SWORD));
  13. ItemMeta itemMeta1 = item.getItemMeta();
  14. itemMeta1.setDisplayName("Survival Games");
  15. lore.clear();
  16. List <String> lore1 = new ArrayList<String>();
  17. lore1.add("With the Survival Games");
  18. lore1.add("against your friends!");
  19. itemMeta1.setLore(lore1);
  20. player.openInventory(inv);
  21. } else {
  22. player.sendMessage(ChatColor.RED +"You do not have access to this command.");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement