mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +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{
|
}else{
|
||||||
$data = array("player" => $this, "message" => $message);
|
$data = array("player" => $this, "message" => $message);
|
||||||
if($this->server->api->handle("player.chat", $data) !== false){
|
if($this->server->api->handle("player.chat", $data) !== false){
|
||||||
|
if(isset($data["message"])){
|
||||||
$this->server->api->chat->send($this, $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