Update 'RealTime/src/RealTime/changeTimeTask.php'

This commit is contained in:
Josh North 2017-07-26 09:39:33 -04:00
parent 730d79cdb5
commit be5212b90b

View File

@ -1,17 +1,17 @@
<?php
namespace RealTime;
use pocketmine\scheduler\PluginTask;
class changeTimeTask extends PluginTask{
public $plugin;
public function __construct($plugin){
parent::__construct($plugin);
$this->plugin = $plugin;
}
public function onRun($currentTick) {
$this->plugin->changeTime();
}
<?php
namespace RealTime;
use pocketmine\scheduler\PluginTask;
class changeTimeTask extends PluginTask{
public $plugin;
public function __construct($plugin){
parent::__construct($plugin);
$this->plugin = $plugin;
}
public function onRun(int $currentTick) {
$this->plugin->changeTime();
}
}