public function __construct(Plugin $owner) { $this->owner = $owner; }
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; }