From a1e0ad791b55c30eb988901e6f0816fcc7832e41 Mon Sep 17 00:00:00 2001 From: Josh North Date: Fri, 20 Jul 2018 13:03:20 -0400 Subject: [PATCH 1/3] Update 'RealTime/src/RealTime/changeTimeTask.php' --- RealTime/src/RealTime/changeTimeTask.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RealTime/src/RealTime/changeTimeTask.php b/RealTime/src/RealTime/changeTimeTask.php index c896ad5..7386c79 100644 --- a/RealTime/src/RealTime/changeTimeTask.php +++ b/RealTime/src/RealTime/changeTimeTask.php @@ -1,12 +1,11 @@ plugin = $plugin; } From 6a3b19986cd3bda20ba785672e8508c2b48f00b0 Mon Sep 17 00:00:00 2001 From: Josh North Date: Fri, 20 Jul 2018 13:03:44 -0400 Subject: [PATCH 2/3] Update 'RealTime/src/RealTime/tellTimeTask.php' --- RealTime/src/RealTime/tellTimeTask.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RealTime/src/RealTime/tellTimeTask.php b/RealTime/src/RealTime/tellTimeTask.php index 8cbf220..1b27a62 100644 --- a/RealTime/src/RealTime/tellTimeTask.php +++ b/RealTime/src/RealTime/tellTimeTask.php @@ -9,9 +9,9 @@ namespace RealTime; -use pocketmine\scheduler\PluginTask; +use pocketmine\scheduler\Task; -class tellTimeTask extends PluginTask{ +class tellTimeTask extends Task{ /** * Actions to execute when run @@ -22,7 +22,6 @@ class tellTimeTask extends PluginTask{ */ public $plugin; public function __construct($plugin){ - parent::__construct($plugin); $this->plugin = $plugin; } From 81cd81202d2824cc75afafe501e02514ddc573b9 Mon Sep 17 00:00:00 2001 From: Josh North Date: Fri, 20 Jul 2018 13:04:04 -0400 Subject: [PATCH 3/3] Update 'RealTime/src/RealTime/MainClass.php' --- RealTime/src/RealTime/MainClass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RealTime/src/RealTime/MainClass.php b/RealTime/src/RealTime/MainClass.php index 0e50702..6929909 100644 --- a/RealTime/src/RealTime/MainClass.php +++ b/RealTime/src/RealTime/MainClass.php @@ -69,12 +69,12 @@ $test = date('H') + ($modify); } $this->getLogger()->info(TextFormat::DARK_GREEN ."[RealTime] It is " . $test. " (20h is same as 8pm)"); - $this->getPlugin()->getScheduler()->scheduleRepeatingTask(new changeTimeTask($this), 120); + $this->getScheduler()->scheduleRepeatingTask(new changeTimeTask($this), 120); $this->changeTime(); if ($tTime == true) { $this->getLogger()->info($tTimeInterval); - $this->getPlugin()->getScheduler()->scheduleRepeatingTask(new tellTimeTask($this), $tTimeInterval); + $this->getScheduler()->scheduleRepeatingTask(new tellTimeTask($this), $tTimeInterval); $this->tellTime(); }