PHP: public function onJoin(PlayerJoinEvent $pje) { $player = $pje->getPlayer(); $id = 1; $amplifier = 0; $visibility = false; $duration = 50000000000000000; $effect = Effect::getEffect($id); $effect->setVisible($visibility); $effect->setDuration($duration); $effect->setAmplifier($amplifier); $player->addEffect($effect); } It goes away after death but if you find a way to give it to the player after the PlayerDeathEvent then it should work fine.
Ok so I still don't know PhP but how will I put this on my server? Make a zip file... Then what do I put inside the zip?
That's not how you do it. You need to learn php & Pocketmine Api so you can make plugins. Try using GetInEffects