getObjectTypeIDByName( 'be.bastelstu.chat.messageType', 'be.bastelstu.chat.messageType.chatUpdate' ); if ($objectTypeID) { (new MessageAction( [ ], 'create', [ 'data' => [ 'roomID' => null, 'userID' => null, 'username' => '', 'time' => TIME_NOW, 'objectTypeID' => $objectTypeID, 'payload' => \serialize([ ]), ], ] ))->executeAction(); } $CHATCore = \file_get_contents(__DIR__ . '/../lib/system/CHATCore.class.php'); if (\strpos($CHATCore, 'chat.phar.php') === false) { @\unlink(__DIR__ . '/../chat.phar.php'); }