Update 'RealTime/src/RealTime/changeTimeTask.php'
This commit is contained in:
parent
730d79cdb5
commit
be5212b90b
@ -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();
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user