From 294a2ed769d9ab9c3303f17de34a236302c9279a Mon Sep 17 00:00:00 2001 From: Josh North Date: Tue, 17 Jul 2018 10:30:34 -0400 Subject: [PATCH] change scheduler to internal --- ASR/src/iJoshuaHD/iMCPE/ASR/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ASR/src/iJoshuaHD/iMCPE/ASR/Loader.php b/ASR/src/iJoshuaHD/iMCPE/ASR/Loader.php index c0ecbad..09ed304 100644 --- a/ASR/src/iJoshuaHD/iMCPE/ASR/Loader.php +++ b/ASR/src/iJoshuaHD/iMCPE/ASR/Loader.php @@ -92,7 +92,7 @@ class Loader extends PluginBase{ return; }else{ $timer--; - $this->getServer()->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"initial_start" ], [$timer]), 20); + $this->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"initial_start" ], [$timer]), 20); } } @@ -109,7 +109,7 @@ class Loader extends PluginBase{ if($time_target < $this->restart_time){ $this->db->updateTimestamp(); } - $this->getServer()->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"start" ], [$time_target]), 1200); + $this->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"start" ], [$time_target]), 1200); } public function count_down($seconds){ @@ -125,7 +125,7 @@ class Loader extends PluginBase{ if($seconds == 30) $this->broadcast("Server will restart in $seconds seconds."); if($seconds == 10) $this->broadcast("Server will restart in $seconds seconds."); if($seconds < 6) $this->broadcast("Server will restart in $seconds."); - $this->getServer()->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"count_down" ], [$seconds]), 20); + $this->getScheduler()->scheduleDelayedTask(new CallbackTask([$this,"count_down" ], [$seconds]), 20); } }