Merge branch 'p1' of Point808/PMMP_Plugins into master
This commit is contained in:
commit
a07642cbb4
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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.
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user