Skip to content

PlayerJoinEvent Message #26

Description

@MalakasPlayzMC

It is not an issue. It's a request. Can you add that on the join event?

$player = $event->getPlayer();
$name = $player->getName();
$text[0] = TextFormat::DARK_PURPLE . "##########################";
$text[1] = TextFormat::AQUA . "Welcome, $name";
$text[2] = TextFormat::LIGHT_PURPLE . "Website: " . TextFormat::WHITE . "Customizable via config";
$text[3] = TextFormat::LIGHT_PURPLE . "Vote Website " . TextFormat::WHITE . "Customizable via config";
$text[4] = TextFormat::AQUA . "To Login do /login . To Register do /register ";
$text[5] = TextFormat::DARK_PURPLE . "##########################";
$player->sendMessage($text[0]);
$player->sendMessage($text[1]);
$player->sendMessage($text[2]);
$player->sendMessage($text[3]);
$player->sendMessage($text[4]);
$player->sendMessage($text[5]);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions