From 706145dbf906558b8b15be5ff00359c83a18538d Mon Sep 17 00:00:00 2001 From: LDX Date: Tue, 14 Apr 2015 19:17:52 -0400 Subject: [PATCH] Use server default shutdown message --- src/iJoshuaHD/iMCPE/ASR/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iJoshuaHD/iMCPE/ASR/Loader.php b/src/iJoshuaHD/iMCPE/ASR/Loader.php index 637d39e..6f597dd 100644 --- a/src/iJoshuaHD/iMCPE/ASR/Loader.php +++ b/src/iJoshuaHD/iMCPE/ASR/Loader.php @@ -117,7 +117,7 @@ public function start($time_target){ public function count_down($seconds){ if($seconds == 1){ foreach($this->getServer()->getOnlinePlayers() as $p){ - $p->kick("Server Restart"); + $p->kick($this->getServer()->getProperty("settings.shutdown-message", "Server closed.")); } $this->getServer()->shutdown(); return; @@ -199,4 +199,4 @@ public function loadConfigurations(){ $this->db = new Database($this); //connection with database $this->db->loadDatabase(); } -} \ No newline at end of file +}