Send the normal message when $data["message"] is removed by a plugin.
This commit is contained in:
Wies 2013-12-03 18:33:37 +01:00
parent 736c233e76
commit adcf95f486

View File

@ -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);
}
}
}
}