mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +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)){
|
||||
$reason = "signal stop";
|
||||
}
|
||||
$this->api->chat->send(false, "Stopping server...");
|
||||
if(($this->api instanceof ServerAPI) === true){
|
||||
if(($this->api->chat instanceof ChatAPI) === true){
|
||||
$this->api->chat->send(false, "Stopping server...");
|
||||
}
|
||||
}
|
||||
//$this->ticker->stop = true;
|
||||
$this->save(true);
|
||||
$this->stop = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user