Question Does Paper support Spigot plugin annotations?

txc217

New member
Sep 20, 2023
4
0
1
Hi! Has anyone found a way to make Spigot's plugin annotations work on Paper servers as a replacement for bundling a plugin.yml file? I looked around and couldn't find anyone else discussing this, so I figured I'd ask before I change to the file format, just in case I'm missing something. Thank you.
 

txc217

New member
Sep 20, 2023
4
0
1
I'm not aware of any plugin annotations in spigot. Perhaps you're thinking of this third-party plugin? https://github.com/eldoriarpg/plugin-yml
I am referring to this: https://www.spigotmc.org/wiki/spigot-plugin-yml-annotations/

When I try to use annotations instead of a plugin.yml file, Paper says the plugin does not contain a plugin.yml or paper-plugin.yml. I assumed that because Paper was forked from Spigot, and this tool appears to have been released in 2018, Paper would have no problem handling the annotations. Then again, it is a separate artifact from the spigot-api package, so perhaps it was never supported? Or I'm missing something else, so I'm asking if anyone has experience using it with Paper or if they know it's not supported.

Thank you for the link, though! This looks promising in its own right. :)
 

electronicboy

Administrator
Staff member
Dec 11, 2021
313
18
64
28
Paper has made 0 changes that would break that, bukkit plugins still load in paper. That error message would imply that your annotation processor wasn’t ran, or your project is misconfigured and the generated file wasn’t bundled into the jar
 
  • Like
Reactions: txc217

txc217

New member
Sep 20, 2023
4
0
1
Paper has made 0 changes that would break that, bukkit plugins still load in paper. That error message would imply that your annotation processor wasn’t ran, or your project is misconfigured and the generated file wasn’t bundled into the jar
Okay, great! Thanks for verifying. I'll go check for those issues.