Hey, This i though used to work, Code: public void OnRespawn(PlayerRespawnEvent event) { Player p = event.getPlayer(); p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 4000, 1), true); } i did cut out some of the code. My problem it dosent give the potion effect
This is from the Javadocs, there is apparently an apply method now boolean apply(LivingEntity entity) Attempts to add the effect represented by this object to the given LivingEntity.
Thanks will try now. if (p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 4000, 1), true)) { log.info("It WORKED"); } else { log.info("It no WORKED"); } This what i tryed and it still didn't work EDIT by Moderator: merged posts, please use the edit button instead of double posting.