So i'm trying to get it so when the server start a zombie will spawn but when killed it will re spawn after time. here code: Code:java ArrayList<Integer> zombies = new ArrayList<Integer>(); @EventHandler(priority=EventPriority.NORMAL)public void onEntityDeathEvent(EntityDeathEvent e){final Entity en = e.getEntity();if(en instanceof Zombie){new BukkitRunnable(){@Overridepublic void run() {if(zombies.contains(en.getEntityId())){Bukkit.broadcastMessage("hey"); //debug message.}else{Location zom1 = new Location(en.getWorld(), 3, 44, 14);Zombie z = (Zombie) zom1.getWorld().spawn(zom1, Zombie.class);z.setCustomName(ChatColor.RED + "Zombie");z.setCustomNameVisible(true);zombies.add(z.getEntityId());}}}.runTaskLater(this.plugin, 10);}} and plus can you do multiple ones?
Rockon999 well, i have to kill a zombie to make a zombie spawn. So how could i make a zombie spawn with out killing another zombie?