Skip to content

Commit

Permalink
🎨 bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
itsTyrion committed Dec 8, 2023
1 parent f954781 commit e6c6ca4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
// fully qualified name, required for plugin.yml `main` property
val fqName = ((TypeElement) element).getQualifiedName().toString();

if (fqName.equals(pluginMainClassFound)) {
if (pluginMainClassFound != null && !pluginMainClassFound.equals(fqName)) {
processingEnv.getMessager()
.printMessage(Kind.ERROR, "Multiple plugin main classes are unsupported! Using `" + fqName + "`.");
}
Expand All @@ -60,7 +60,7 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
// fully qualified name, required for bungee.yml `main` property
val fqName = ((TypeElement) element).getQualifiedName().toString();

if (!fqName.equals(bungeePluginMainClassFound)) {
if (bungeePluginMainClassFound != null && !bungeePluginMainClassFound.equals(fqName)) {
processingEnv.getMessager()
.printMessage(Kind.ERROR, "Multiple plugin main classes are unsupported! Using `" + fqName + "`.");
return false;
Expand Down

0 comments on commit e6c6ca4

Please # to comment.