Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if(command.getName().equalsIgnoreCase("games")) {
- if(player.hasPermission("autoanswer.default")) {
- ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (byte)2 );
- ItemMeta itemMeta = item.getItemMeta();
- itemMeta.setDisplayName("MC-IF");
- List <String> lore = new ArrayList<String>();
- lore.add("Custom");
- lore.add("MCInfected");
- itemMeta.setLore(lore);
- Inventory inv = Bukkit.createInventory(null, 9, "DeltaWars Network Games");
- inv.addItem(item);
- player.getInventory().addItem(new ItemStack(Material.IRON_SWORD));
- ItemMeta itemMeta1 = item.getItemMeta();
- itemMeta1.setDisplayName("Survival Games");
- lore.clear();
- List <String> lore1 = new ArrayList<String>();
- lore1.add("With the Survival Games");
- lore1.add("against your friends!");
- itemMeta1.setLore(lore1);
- player.openInventory(inv);
- } else {
- player.sendMessage(ChatColor.RED +"You do not have access to this command.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement