mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
applied some fixes
This commit is contained in:
parent
d60258097d
commit
86797da84b
5 changed files with 27 additions and 5 deletions
|
|
@ -118,7 +118,7 @@ class PocketMinecraftServer{
|
|||
$this->saveEnabled = true;
|
||||
$this->api->level->saveAll();
|
||||
$this->saveEnabled = $save;
|
||||
$this->send2Discord('[INFO] Server stopped!');
|
||||
//$this->send2Discord('[INFO] Server stopped!');
|
||||
}
|
||||
|
||||
public function startDatabase(){
|
||||
|
|
@ -203,7 +203,8 @@ class PocketMinecraftServer{
|
|||
}
|
||||
if(($this->api instanceof ServerAPI) === true){
|
||||
if(($this->api->chat instanceof ChatAPI) === true){
|
||||
$this->api->chat->broadcast("Stopping server...");
|
||||
$this->api->chat->send(false, "Stopping server...");
|
||||
new StopMessageThread($this, "[INFO] Stopping server..."); //broadcast didnt want to send message to discord for some reason
|
||||
}
|
||||
}
|
||||
$this->stop = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue