pocketmine\scheduler\PluginTask::__construct PHP Method

__construct() public method

public __construct ( pocketmine\plugin\Plugin $owner )
$owner pocketmine\plugin\Plugin
    public function __construct(Plugin $owner)
    {
        $this->owner = $owner;
    }

Usage Example

Example #1
0
 public function __construct(Main $plugin, Player $player)
 {
     parent::__construct($plugin);
     $this->setHandler($plugin->getServer()->getScheduler()->scheduleDelayedTask($this, 20 * 2));
     $this->plugin = $plugin;
     $this->player = $player;
 }
All Usage Examples Of pocketmine\scheduler\PluginTask::__construct