This should be in the plugin dev section... Code (assuming $player is instanceof Player): PHP: $player->addTitle("Title", "subtitle"); You can also set FadeIn, Stay and FadeOut time: e.g.: PHP: $player->addTitle("Title", "subtitle", 10, 20, 30); Edit: Forgot a quotation mark
Its called a Title. (Assuming $player is an instance of Player) PHP: $player->addTitle("Title", "Subtitle", 20, 20, 20); What this all means: "Title" - The BIG text displayed "Subtitle" - The slightly smaller text displayed under the title 20 - The amount of ticks it takes for the title to fade in 20- The amount of time the title stays on the screen for 20 - The amount of ticks it takes for the title to fade in NOTE: The times at the end are optional. Also 20 ticks = 1 second. Some examples: PHP: $player->addTitle("Welcome");$player->addTitle("Welcome", "To my server");$player->addTitle("Welcome", "", 20, 40, 20); -------------------------- The small text above the hotbar is called an ActionBar PHP: $player->addActionBarMessage("Waste money in our shop now!"); Which is the equivelant of PHP: $player->sendTip("Why haven't you wasted your money yet?"); But using action bar is best
What advantages does Player::sendActionBarMessage() have over Player::sendTip()? I just want to know what the difference is.
To be honest, I have no idea. But sendTip() has the possibility to be removed in newer updates IN FAVOUR of the action bar. I've even tried setting custom durations on action bar and it doesn't work, so currently there is no advantages other then the one I stated above.
The advantage is you can set the duration time directly via the packet instead of having to make a task and all that 'poop' with tips.
Yep. You send a packet with TYPE_SET_ANIMATION_TIMES first and then the packet with the action bar message. If that does not work then try sending a single packet with the duration and action bar message.
Sent a single packet with TYPE_SET_ACTIONBAR_MESSAGE and set the duration (fade in, stay in and fade out time) in seconds.
I think its a client bug. I set the fade in to 200 and stay to 800 and it faded in slowly and dissapeared before it even completely appeared