mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Fix
Send the normal message when $data["message"] is removed by a plugin.
This commit is contained in:
parent
736c233e76
commit
adcf95f486
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue