how to remove FloatingTextParticle? $text = "lol"; $title = "kek"; $particle = new FloatingTextParticle(new Vector3($p->getX(),$p->getY() - 1,$p->getZ()),$text,$title); $p->getLevel()->addParticle($particle);
I just Russian , but not English , I know that there is a separate topic for Russian . But there, few people look And so the answer to "wtf" http://forums.pocketmine.net/threads/how-to-remove-floatingtextparticle.9192/, it says here that you want to use: $particle->setInvisible(); $level->addParticle($particle); I do not understand how to use it .
Check out my hologram class https://github.com/Samueljh1/Darkhammer-Open-Source-Classes/blob/master/Hologram/Hologram.php
add a third argument on the add particle function, it requires an array of players that will have the particle/entity visible.