mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fix
Send the normal message when $data["message"] is removed by a plugin.
This commit is contained in:
parent
736c233e76
commit
adcf95f486
@ -1924,7 +1924,11 @@ class Player{
|
||||
}else{
|
||||
$data = array("player" => $this, "message" => $message);
|
||||
if($this->server->api->handle("player.chat", $data) !== false){
|
||||
$this->server->api->chat->send($this, $data["message"]);
|
||||
if(isset($data["message"])){
|
||||
$this->server->api->chat->send($this, $data["message"]);
|
||||
}else{
|
||||
$this->server->api->chat->send($this, $message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user