Skip to content

Contributing

unknown edited this page Nov 14, 2026 · 1 revision

🤝 Contributing

Thanks for helping! Bug reports, translations, ideas and pull requests are all welcome.

Branches

Branch What it is
dev Development. Every pull request goes here.
main Releases. Merging dev into main makes a new version.
  1. Fork the repository (or, with access, branch from dev).
  2. Name the branch in kebab-case: fix-<description> for a fix, <description> for a feature.
  3. Open the pull request into dev.

Every pull request is built and tested by the Build workflow, analyzed by SonarQube Cloud (when the secret is available) and reviewed by CodeRabbit.

Before opening a pull request

  • ./gradlew build passes (it runs the tests and compileAgainstLatest). See Building from Source.
  • Code that doesn't depend on a platform goes in core; Paper-only code in paper; mod code in mod-common (or fabric/neoforge for loader-only code). See Architecture.
  • Code comments, commit messages and texts are in English.
  • A new option goes in Settings (with its path, command key, category and range), in core/src/main/resources/config.yml with a comment, and gets a name and description under options.<key> in every language file. A change to an existing option's path or values needs an upgrade step and a new config-version (see ConfigUpgrade).
  • A new or changed text goes in every file in lang/; changing a default text means a new version in the language files (see LanguageUpgrade).
  • Test it in game on Paper and, when it touches the mods, on Fabric or NeoForge.

Commit messages

The release notes are built from the commit messages, grouped by the prefix of the first line (the prefix itself is left out of the notes):

Prefix Section Also accepted
New: New Add:, Added:
Changed: Changed Change:, and commits with no prefix
Updated: Updated Update:, and Dependabot's Bump ...
Removed: Removed Remove:

Write the first line for server owners: what changed for them, not how the code changed. For example:

New: bots.yml's version is read, so a future format change can update older files
Changed: an older language file is updated keeping the owner's texts, instead of being replaced

The body can explain the details. .github/release-notes-overrides.txt can give an old commit another text, or leave it out with -.

Releases

Fully automatic, on every pull request merged into main (.github/workflows/release.yml):

  1. Bumps the version in gradle.properties: patch by default; the minor or major label on the PR changes that, and skip-release skips the release.
  2. Builds and tests with the new version.
  3. Commits the version and CHANGELOG.md to main, tags vX.Y.Z and creates the GitHub release with the jars.
  4. Publishes on Modrinth (every jar), Hangar (the plugin) and CurseForge (the mods), each when its secret is set.
  5. Announces it on Discord.
  6. Merges main back into dev.

Pushes to dev are also posted to Discord with the plugin jar, as dev builds.

Translations

  1. Copy core/src/main/resources/lang/en.yml to core/src/main/resources/lang/<code>.yml and translate it, keeping the <placeholders> and the MiniMessage tags (see Languages).
  2. Add the code to Messages.BUNDLED_LANGUAGES and to the list in the comment of general.language in config.yml.
  3. ./gradlew :core:test runs LanguageFilesTest, which checks the keys and placeholders.
  4. Open the pull request with the translation label.

Issues

Use the forms on the issues page: Bug report or Feature request. Questions can also go to Discord.

Security

Don't report security problems in public issues or Discord channels. Report them privately:

  • GitHub: the repository's Security tab → Report a vulnerability;
  • Discord: open a staff ticket and choose the CVE option.

Include the ManhuntStar and server versions, what the problem allows and how to reproduce it. You should get a first answer within 7 days. Only the latest release (2.0.x) gets security fixes. Details in SECURITY.md.

License

ManhuntStar is licensed under the GNU GPL v3 (LICENSE.md). By contributing you agree your contribution is released under the same license. The original mod, T* by OpaleMC, is CC0.

Clone this wiki locally