Hey i'm making a plugin which teleports a zombie to the player when it spawns but my console keeps being spammed is there any way to stop this? Code:java @EventHandlerpublic void onPlayerMoveEvent(CreatureSpawnEvent e) {if (e.getEntity() instanceof Zombie) {for (Player p : Bukkit.getOnlinePlayers()){e.getEntity().teleport(p);e.getEntity().addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 100000, 0));}}}} Console image: http://gyazo.com/61bda45fc31b480d00d8cd3250f2d4f9
Rufflez You're spawning 1 zombie, getting all the players online then teleporting that zombie to all the players? w0t
How would i make it so the zombie teleports to the player if the players is in a 10 block radius of the zombie?