1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to show this big message on screen?

Discussion in 'Requests' started by sky, Nov 20, 2017.

  1. sky

    sky Silverfish

    Messages:
    23
    GitHub:
    zxl777
    Which Plugin can show this big title when the player joining ?
     

    Attached Files:

  2. _XHazardX_

    _XHazardX_ Spider Jockey

    Messages:
    33
    GitHub:
    XHazardX420
    $player->addTitle("Title", "Subtitle", "fadein", "time", "fadeout");
     
    HimbeersaftLP likes this.
  3. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    I'm gonna go out on a limb and say he wants a plugin made, not code.

    I don't know what gave it away first, the fact that it's in the plugin requests section or because he called it a big message on screen.

    In any case, if I have extra free time, I'd be glad to help you out and make something like this.
     
    rektpixel, dktapps and HimbeersaftLP like this.
  4. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
  5. sky

    sky Silverfish

    Messages:
    23
    GitHub:
    zxl777
    public function onJoin(PlayerJoinEvent $e){
    $player = $e->getPlayer();
    $player->addTitle("Hello World", "Subtitle");
    }


    Why this code can not show the title when the play joined ?
     
  6. sky

    sky Silverfish

    Messages:
    23
    GitHub:
    zxl777
  7. sky

    sky Silverfish

    Messages:
    23
    GitHub:
    zxl777
    pmmp 1.7dev-374
     
  8. rektpixel

    rektpixel Baby Zombie

    Messages:
    186
    PHP:
    public function onJoin(PlayerJoinEvent $e){
    $player $e->getPlayer();
    $player->addTitle("Hello World""Subtitle"105010);
    }
    It should be this.
    I do believe sending a title on join event doesn't work, I think it's a problem with pocketmine but idk. I came across the same problem. What I did was use PlayerMoveEvent instead; by detecting if the player is at spawnpoint, if the player is; it will send the title. Technically it will spam the player with the title but it's not really an issue as when the player moves of the coordinates it'll stop. You could use permissions to stop it from spamming tho.
     
  9. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks

    You should schedule a task for the title, as showing it right as when the client joins makes it seem like it doesn't show up at all.


    The last 3 parameters aren't necessary in order to send a title, as they'll be the default length if not filled.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.