hello .. I want to add text down of player name I use this code : <?php namespace test; use pocketmine\plugin\PluginBase; use pocketmine\utils\TextFormat as Color; use pocketmine\command\Command; use pocketmine\command\commandsender; class Main extends PluginBase { public function onEnable() { $this->getLogger()->info(Color::GREEN . "Plugin has Enabled"); } public function onDisable() { $this->getLogger()->info(Color::RED . "Plugin has Disabled"); } public function onCommand(CommandSender $sender, Command $cmd, $lable, array $args) { switch($cmd->getName()) { case 'test': $name = $sender->getName(); if(isset($args[0])) { switch($args[0]) { case'ts': $sender->setNameTag($name . " long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text long text "); } } } } } but the text cover the player skin how can I fix it ??
Use \n PHP: $sender->setNameTag($name . "long text long text long text long textlong text long text long text long textlong text long text long text long textlong text long text long text long textlong text long text long text long text\n\n\n\n\n\n"); I prefer PHP_EOL which is the constant for \n, but there ya go