Contributing
On this page(3)
SnLib is closed source and solo-maintained. Its source repository is private, it accepts no pull requests, and the only artifact that ships is the library jar described in Where to get it. What you can contribute is feedback: bug reports, compatibility findings and feature requests.
Reporting a problem
Report through the SnDevelopment Discord, linked from sndevelopment.dev. A useful report carries:
- The output of
/snlib version(library version and API level) and the server software and version (/version). - The consumer plugin involved and its version, when the problem shows through a plugin.
- The exact console lines, including any stack trace, pasted as text rather than a screenshot.
- What you expected and what happened instead, with the smallest set of steps that reproduces it.
A report against the obfuscated jar is fine: the maintainer keeps the mapping of every released version and translates the stack trace.
Requesting a feature
Describe the plugin behavior you want to build, not the library method you imagine. Most requests are solved by a module that already exists (see the Developers section), and the ones that are not are weighed against the whole consumer fleet, because every public member that lands in SnLib is frozen by the additive-only contract described in Compatibility and versioning.
Stability contract, for the record
The public, non-internal API is frozen and guarded mechanically by a japicmp gate at
build time: nothing public is ever removed or changed in signature within a major version.
The *.internal packages, the shaded com.sn.lib.libs.** packages and the Velocity base
(com.sn.lib.velocity.**) are outside that contract and may change between releases. A
consumer that compiles only against the public surface keeps working across every SnLib
release of the same major.