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 : )
in the PlayerJoinEvent of your plugin put the line: $event->setJoinMessage($event->getPlayer()->getName().' Have joined the game');
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 ^^^
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.