mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
that explains it
This commit is contained in:
@@ -104,7 +104,9 @@ public class ApiAnnotationProcessor extends AbstractProcessor {
|
||||
"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)) {
|
||||
if (element.getKind() != ElementKind.CLASS) {
|
||||
processingEnv.getMessager()
|
||||
@@ -145,7 +147,7 @@ public class ApiAnnotationProcessor extends AbstractProcessor {
|
||||
new Gson().toJson(description, writer);
|
||||
}
|
||||
processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE,
|
||||
"Wrote velocity-plugin.json to " + object.toUri());
|
||||
"Wrote velocity-plugin.json to " + object.toUri().toString());
|
||||
pluginClassFound = qualifiedName.toString();
|
||||
} catch (IOException e) {
|
||||
processingEnv.getMessager()
|
||||
|
||||
Reference in New Issue
Block a user