mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Fixed a bug in multiline chat handling
This commit is contained in:
parent
2ba601b6e9
commit
8ca37b3813
@ -2049,7 +2049,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
$message = TextFormat::clean($message, $this->removeFormat);
|
||||
foreach(explode("\n", $message) as $messagePart){
|
||||
if(trim($messagePart) !== "" and strlen($messagePart) <= 255 and $this->messageCounter-- > 0){
|
||||
$ev = new PlayerCommandPreprocessEvent($this, $message);
|
||||
$ev = new PlayerCommandPreprocessEvent($this, $messagePart);
|
||||
|
||||
$this->server->getPluginManager()->callEvent($ev);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user