Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
that explains it
Dieser Commit ist enthalten in:
Ursprung
707de2dfba
Commit
fe2ca18955
@ -104,7 +104,9 @@ public class ApiAnnotationProcessor extends AbstractProcessor {
|
|||||||
"method must have an Event as its first parameter", method);
|
"method must have an Event as its first parameter", method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (ProcessorUtils.contains(annotations, Plugin.class)) {
|
}
|
||||||
|
|
||||||
|
if (ProcessorUtils.contains(annotations, Plugin.class)) {
|
||||||
for (Element element : roundEnv.getElementsAnnotatedWith(Plugin.class)) {
|
for (Element element : roundEnv.getElementsAnnotatedWith(Plugin.class)) {
|
||||||
if (element.getKind() != ElementKind.CLASS) {
|
if (element.getKind() != ElementKind.CLASS) {
|
||||||
processingEnv.getMessager()
|
processingEnv.getMessager()
|
||||||
@ -145,7 +147,7 @@ public class ApiAnnotationProcessor extends AbstractProcessor {
|
|||||||
new Gson().toJson(description, writer);
|
new Gson().toJson(description, writer);
|
||||||
}
|
}
|
||||||
processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE,
|
processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE,
|
||||||
"Wrote velocity-plugin.json to " + object.toUri());
|
"Wrote velocity-plugin.json to " + object.toUri().toString());
|
||||||
pluginClassFound = qualifiedName.toString();
|
pluginClassFound = qualifiedName.toString();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
processingEnv.getMessager()
|
processingEnv.getMessager()
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren