diff --git a/AdminMail/plugin.yml b/AdminMail/plugin.yml index 53b75d8..e2e2ee5 100644 --- a/AdminMail/plugin.yml +++ b/AdminMail/plugin.yml @@ -1,7 +1,7 @@ name: AdminMail main: AdminMail\Main api: [3.0.0, 4.0.0] -version: 0.0.3 +version: 0.0.4 description: "Administrative email on events" commands: diff --git a/AdminMail/src/AdminMail/Main.php b/AdminMail/src/AdminMail/Main.php index 71284d7..6e54a4e 100644 --- a/AdminMail/src/AdminMail/Main.php +++ b/AdminMail/src/AdminMail/Main.php @@ -25,7 +25,7 @@ class Main extends PluginBase implements Listener { $adminsubject = $this->getConfig()->get("adminsubject"); $adminmessage = $this->getConfig()->get("adminmessage"); $task = new EmailTask($this, $adminmail, $name, $adminsubject, $adminmessage); - $this->getServer()->getScheduler()->scheduleDelayedTask($task, 5*20); + $this->getScheduler()->scheduleDelayedTask($task, 5*20); } } \ No newline at end of file