Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit f950655

Browse files
committed
set JoinMessage
1 parent 6af1029 commit f950655

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VectorNetworkProject/TheMix/event/ThePlayerJoinEvent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ThePlayerJoinEvent implements Listener
2222
public function event(PlayerJoinEvent $event)
2323
{
2424
$player = $event->getPlayer();
25+
$event->setJoinMessage('§7[§a参加§7] §e'.$player->getName().'が参加しました。');
2526
$scoreboard = new Scoreboard(TheMix::getInstance()->getServer()->getPluginManager()->getPlugin('ScoreboardsPE')->getPlugin(), '§l§7=== §6THE §aM§cI§eX §7===', ScoreboardAction::CREATE);
2627
$scoreboard->create(ScoreboardDisplaySlot::SIDEBAR, ScoreboardSort::DESCENDING);
2728
$scoreboard->addDisplay($player);

0 commit comments

Comments
 (0)