if($player->hasEffect(Effect::INVISIBILITY)) { i assume you could use that and get the level or you could do PHP: $effect = new EffectInstance(Effect::getEffect(effect), time, multiplier);if($player->hasEffect($effect); Maybe it'll work
Hi, you can get effects level like: PHP: $effect = Effect::NIGHT_VISION; //check nightvision level$player->getEffect($effect)->getEffectLevel(); //getting NightVision Level :P set prefix to SOLVED