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

Solved edit the join message

Discussion in 'Development' started by @McJblus, Apr 2, 2019.

  1. @McJblus

    @McJblus Spider

    Messages:
    6
    Hello, I just started my core plugins for my server mcpe as here is the screen so below, my I do not remember how to edit the message of welcome and quit (seen that I just resume the development mcpe), I would like to know how to integrate the message of Join and Quit edit in the code
    upload_2019-4-2_16-11-12.png
     
  2. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    PHP:
    /** @var PlayerJoinEvent $ev */
    $ev->setJoinMessage("hello");
    I recommend you use an IDE with auto complete so you don't need to ask these questions again
     
  3. @McJblus

    @McJblus Spider

    Messages:
    6
    Do you have an IDE seen?
     
  4. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    PhpStorm
     
  5. MusicNOvas

    MusicNOvas Spider Jockey

    Messages:
    43
    $player = $event->getPlayer();
    $event->setJoinMessage("MessageExample " . $player->getName());
     
  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.