mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +00:00
Fixed crash when players try to chat [MCPE 0.7.0]
This commit is contained in:
parent
45efcc5faa
commit
45267ea074
@ -1308,7 +1308,7 @@ class Player{
|
|||||||
$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){
|
if($this->server->api->dhandle("player.chat", array("player" => $this, "message" => $message)) !== false){
|
||||||
$this->server->api->send($this, $message);
|
$this->server->api->chat->send($this, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user