staff message add permission

This commit is contained in:
xiaomlove
2022-08-22 21:07:06 +08:00
parent f55fef594c
commit 4b30804121
11 changed files with 219 additions and 59 deletions

View File

@@ -11,7 +11,7 @@ class Plugin
$this->bootPlugins();
}
public function enabled($name): bool
public static function enabled($name): bool
{
return !empty(self::$providers[$name]['providers']);
}