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

Solved Player Join Line

Discussion in 'Help' started by FAXES, May 21, 2017.

  1. FAXES

    FAXES Spider Jockey

    Messages:
    45
    I have a plugin that shows a player a msg when they join. But it disables "Player Joined" msg. whats the line of code that produces this. Code that goes to the whole server (not just the player). I want to add it to the config and see if it works.

    - Thanks for any help : )
     
  2. RyanIsBack

    RyanIsBack Spider

    Messages:
    10
    in the PlayerJoinEvent of your plugin put the line: $event->setJoinMessage($event->getPlayer()->getName().' Have joined the game');
     
  3. FAXES

    FAXES Spider Jockey

    Messages:
    45
    yeah I tried it and it did not work. Is there a format that it requires.

    "welcome-message": "§l§fWelcome to §bFoph§6Craft§f Use /help For Cmds.§r §dUPDATE -> Some player data reset. More info in Admin office."
    $event->setJoinMessage($event->getPlayer()->getName().' Have joined the game');

    That's what I have ^^^
     
  4. FAXES

    FAXES Spider Jockey

    Messages:
    45
    Yeah I got it,
    join-message: "§e%player% joined the game."
    the §e is colour text, take it out if you don't want colour text.
     
  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.