public static function registerPluginClass(string $name, string $class): bool
    {
        if (class_exists($class) === false) {
            return false;
        }
        if (self::$plugin_classes === null) {
            self::$plugin_classes = [];
        }
        $check = new ReflectionClass($class);
        if ($check->implementsInterface("TheCMSThread\\Classes\\Plugin") === true) {
            self::$plugin_classes[$name] = $class;
            return true;
        } else {
            return false;
        }
    }