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

View File

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