A better way compared to what? Also, this is the development section. Please show proof of a previous attempt.
idea, get a textfont file and read white as 1, black as 0 each black will be a particle each white will be blank
If the words are provided by the player, perhaps you want to attach a font file with your plugin, include a font parser library and convert the fonts into a bitmap that you can place particle dots according to.
PHP: $level = $this->getServer()->getDefaultLevel();$imagen = @imagecreatefrompng($file = $this->getDataFolder()."your_image.png");$imagen = imagecolorallocate($imagen, 255, 255, 255);imagestring($imagen, 5, 0, 0, "Hi", imagecolorallocate($imagen, 0, 0, 255));$imagen = imagerotate($imagen, -180, 0);$size = getimagesize($file);for($x = 0; $x < $size[0]; ++$x){for($y = 0; $y < $size[1]; ++$y){$color = imagecolorsforindex($imagen, imagecolorat($imagen, $x, $y));if($color["red"] === 255 and $color["green"] === 255 and $color["blue"] === 255){ //optional xDcontinue;}$level->addParticle(new FlameParticle($level->getSafeSpawn()->add($x*0.15, $y*0.15, -$x*0.15)));}}imagedestroy($imagen); Maybe this would be useful as a reference