PHP: public function FloatingText(Player $player){ $level = $this->plugin->getServer()->getDefaultLevel(); #WarZone $warzone = new FloatingTextParticle(new Vector3(106, 177, 39), TextFormat::DARK_RED . "PvP is Enabled in warzone!", TextFormat::RED . " Warning:"); $level->addParticle($warzone); }
You can't but here is a tip: Spawn the particle very high so the player can't see it and then use \n. Hopefully the bug with a j appearing when you used \n is fixed so the players won't be able to understand what happened and the black thing isn't there.
It will take bit long This should help PHP: public function FloatingText(Player $player){ $level = $this->plugin->getServer()->getDefaultLevel(); #WarZone $warzone = new FloatingTextParticle(new Vector3(106, 177, 39), . " ", TextFormat::DARK_RED . "PvP is Enabled in warzone!", TextFormat::RED . " Warning:"); $level->addParticle($warzone); }