I tried that, like i found it in the old forums: PHP: $player->addEffect(Effect::JUMP); But its not working. What did I do wrong?
Try this: PHP: $effect = Effect::getEffect(Effect::JUMP); $effect->setAmplifier(4); $effect->setDuration(23333); $player->addEffect($effect);
The reason your code didn't work is because the parameter for the function requires an instance of the Effect class rather than an integer.