Merge branch 'p1' of Point808/PMMP_Plugins into master

This commit is contained in:
Josh North 2017-07-26 09:40:24 -04:00 committed by Gitea
commit a07642cbb4
2 changed files with 49 additions and 49 deletions

View File

@ -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();
} }
} }

View File

@ -1,34 +1,34 @@
<?php <?php
/** /**
* Created by PhpStorm. * Created by PhpStorm.
* User: Guillaume * User: Guillaume
* Date: 06/07/2015 * Date: 06/07/2015
* Time: 11:00 * Time: 11:00
*/ */
namespace RealTime; namespace RealTime;
use pocketmine\scheduler\PluginTask; use pocketmine\scheduler\PluginTask;
class tellTimeTask extends PluginTask{ class tellTimeTask extends PluginTask{
/** /**
* Actions to execute when run * Actions to execute when run
* *
* @param $currentTick * @param $currentTick
* *
* @return void * @return void
*/ */
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)
{ {
// TODO: Implement onRun() method. // TODO: Implement onRun() method.
} }
} }