mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Player join message will be only shown if not empty (modified by plugins)
This commit is contained in:
parent
530b81674b
commit
214de28808
@ -1190,8 +1190,10 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
|
|
||||||
$this->server->getLogger()->info(TextFormat::AQUA . $this->username . TextFormat::WHITE . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->id . " at (" . $this->getLevel()->getName() . ", " . round($this->x, 4) . ", " . round($this->y, 4) . ", " . round($this->z, 4) . ")");
|
$this->server->getLogger()->info(TextFormat::AQUA . $this->username . TextFormat::WHITE . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->id . " at (" . $this->getLevel()->getName() . ", " . round($this->x, 4) . ", " . round($this->y, 4) . ", " . round($this->z, 4) . ")");
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new PlayerJoinEvent($this, $this->username . " joined the game"));
|
$this->server->getPluginManager()->callEvent($ev = new PlayerJoinEvent($this, $this->getName() . " joined the game"));
|
||||||
$this->server->broadcastMessage($ev->getJoinMessage());
|
if(strlen(trim($ev->getJoinMessage())) > 0){
|
||||||
|
$this->server->broadcastMessage($ev->getJoinMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->orderChunks();
|
$this->orderChunks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user