diff --git a/README.md b/README.md
index 81a97c4..a6bb3e2 100644
--- a/README.md
+++ b/README.md
@@ -47,13 +47,13 @@ Maven 依赖
top.focess
focess-qq
- 4.0.7.3000
+ 4.0.7.4000
```
Gradle 依赖
```gradle
-implementation 'top.focess:focess-qq:4.0.7.3000'
+implementation 'top.focess:focess-qq:4.0.7.4000'
```
开发文档移步本项目[Wiki](https://github.com/MIdCoard/MiraiQQ/wiki)
diff --git a/pom.xml b/pom.xml
index 0c9babd..488ad3a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
A simple QQ Bot framework
top.focess
focess-qq
- 4.0.7.3000
+ 4.0.7.4000
ossrh
diff --git a/src/main/java/top/focess/qq/core/plugin/PluginClassLoader.java b/src/main/java/top/focess/qq/core/plugin/PluginClassLoader.java
index 04f8144..cbc3594 100644
--- a/src/main/java/top/focess/qq/core/plugin/PluginClassLoader.java
+++ b/src/main/java/top/focess/qq/core/plugin/PluginClassLoader.java
@@ -463,6 +463,13 @@ private void analyseClass(@NotNull Class> c) {
if ((a = c.getAnnotation(annotation)) != null)
HANDLERS.get(annotation).handle(c, a, this);
}
+ for (Field field : c.getDeclaredFields())
+ if (Modifier.isStatic(field.getModifiers()))
+ for (Class extends Annotation> annotation : FIELD_ANNOTATION_HANDLERS.keySet()) {
+ Annotation a;
+ if ((a = field.getAnnotation(annotation)) != null)
+ FIELD_ANNOTATION_HANDLERS.get(annotation).handle(field, a, this);
+ }
}
public Class> findClass(String name, boolean resolve) throws ClassNotFoundException {