public function __construct(HereAuth $main) { parent::__construct($this->main = $main); $period = (int) ($main->getConfig()->getNested("RemindLogin.Interval", 0.5) * 20); $this->type = strtolower($main->getConfig()->getNested("RemindLogin.Type", "popup")); if ($this->type === "none") { return; } $main->getServer()->getScheduler()->scheduleDelayedRepeatingTask($this, $period, $period); }