This commit is contained in:
2020-09-02 19:09:32 +08:00
parent d97e45e201
commit 4e881c628b
3 changed files with 39 additions and 34 deletions
+2 -3
View File
@@ -27,13 +27,12 @@ class OnShutdown extends Callback
/**
* @param Server $server
* @throws ConfigException|ComponentException
* @throws ComponentException
* @throws Exception
*/
public function onHandler(Server $server)
{
$this->system_mail(Config::get('email'), Config::get('nickname'), 'server shutdown~');
$this->system_mail('server shutdown~');
$event = Snowflake::get()->getEvent();
if (!$event->exists(Event::SERVER_SHUTDOWN)) {
return;