mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Allow chat plugins to work with eachother
This commit is contained in:
parent
fd2eb7b230
commit
736c233e76
1 changed files with 3 additions and 2 deletions
|
|
@ -1922,8 +1922,9 @@ class Player{
|
||||||
if($message{0} === "/"){ //Command
|
if($message{0} === "/"){ //Command
|
||||||
$this->server->api->console->run(substr($message, 1), $this);
|
$this->server->api->console->run(substr($message, 1), $this);
|
||||||
}else{
|
}else{
|
||||||
if($this->server->api->dhandle("player.chat", array("player" => $this, "message" => $message)) !== false){
|
$data = array("player" => $this, "message" => $message);
|
||||||
$this->server->api->chat->send($this, $message);
|
if($this->server->api->handle("player.chat", $data) !== false){
|
||||||
|
$this->server->api->chat->send($this, $data["message"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue