mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Fix TranslationContainer issue
This commit is contained in:
parent
481114281e
commit
c2186041d6
@ -902,7 +902,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$this->getDisplayName()
|
$this->getDisplayName()
|
||||||
])
|
])
|
||||||
));
|
));
|
||||||
if(strlen(trim($ev->getJoinMessage())) > 0){
|
if(strlen(trim((string) $ev->getJoinMessage())) > 0){
|
||||||
$this->server->broadcastMessage($ev->getJoinMessage());
|
$this->server->broadcastMessage($ev->getJoinMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1654,12 +1654,12 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param TextContainer|string $message
|
||||||
* @param Player[] $recipients
|
* @param Player[] $recipients
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function broadcastMessage(string $message, array $recipients = []) : int{
|
public function broadcastMessage($message, array $recipients = []) : int{
|
||||||
if(!is_array($recipients)){
|
if(!is_array($recipients)){
|
||||||
return $this->broadcast($message, self::BROADCAST_CHANNEL_USERS);
|
return $this->broadcast($message, self::BROADCAST_CHANNEL_USERS);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user