mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Fixed stop crash due to chat API not set
This commit is contained in:
parent
bf5df18170
commit
6cd51dbbf6
@ -163,7 +163,11 @@ class PocketMinecraftServer{
|
|||||||
if(is_int($reason)){
|
if(is_int($reason)){
|
||||||
$reason = "signal stop";
|
$reason = "signal stop";
|
||||||
}
|
}
|
||||||
|
if(($this->api instanceof ServerAPI) === true){
|
||||||
|
if(($this->api->chat instanceof ChatAPI) === true){
|
||||||
$this->api->chat->send(false, "Stopping server...");
|
$this->api->chat->send(false, "Stopping server...");
|
||||||
|
}
|
||||||
|
}
|
||||||
//$this->ticker->stop = true;
|
//$this->ticker->stop = true;
|
||||||
$this->save(true);
|
$this->save(true);
|
||||||
$this->stop = true;
|
$this->stop = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user