PHP: $player->addEffect(new EffectInstance(Effect::getEffect(Effect::SPEED), 10, 1));//10 is the time (second)//1 is the effect level, u can modify it if you want