Update 'RealTime/src/RealTime/changeTimeTask.php'
This commit is contained in:
parent
730d79cdb5
commit
be5212b90b
@ -1,17 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace RealTime;
|
namespace RealTime;
|
||||||
|
|
||||||
use pocketmine\scheduler\PluginTask;
|
use pocketmine\scheduler\PluginTask;
|
||||||
|
|
||||||
class changeTimeTask extends PluginTask{
|
class changeTimeTask extends PluginTask{
|
||||||
public $plugin;
|
public $plugin;
|
||||||
public function __construct($plugin){
|
public function __construct($plugin){
|
||||||
parent::__construct($plugin);
|
parent::__construct($plugin);
|
||||||
$this->plugin = $plugin;
|
$this->plugin = $plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onRun($currentTick) {
|
public function onRun(int $currentTick) {
|
||||||
$this->plugin->changeTime();
|
$this->plugin->changeTime();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user