Unless you are using the api3/network branch, these won't work, but there is the $player->addTitle() method. Here is an example: PHP: /** @var Player $player */ $player->addTitle(string $title, string $subtitle, int $fadeIn, int $duration, int $fadeOut); All of the integers are in ticks, which means 20 = 1 second.
fadIn is the time in ticks that the title fades onto a player's screen, and fadeOut is the time that the title fades out.
A dot is not a comma. You should use $player->sendTitle("Welcome", "on my Server", 50, 100, 50); Note that the fadeIn and fadeOut is the time it takes to fade in and out, not the time at which it does that.
To my knowledge: The fade parameters cause the title to appear more slowly, with it starting very transparent, then slowly(or quickly, depending on the fade) becoming more apparent. Setting both fadeIn and fadeOut to 20, for example, would cause the title to fade in over 1 second, then remain for however long the duration is, then fade out for 1 second. It isn't necessary to have a fade at all, so you can set them to 0 or leave them as they are, it won't break your method. However, using 100 for all 3 parameters would cause the title to last almost 15 seconds, which may be longer than desired. I suggest using 20 or 40 for both of the fade parameters to get a smoother title.
That's `addTitle`, not `sendTitle`. Reference: https://github.com/pmmp/PocketMine-MP/commit/6b747f9272ac07e558cd31403155408795ee7571 Since there is also a way to remove a title, I chose `add` instead of `send` because you can't really unsend, but you can remove. Simply OCD.
Then you are using an incorrect version or are not using PocketMine-MP. Once again, no support for spoons will be provided here.