Repository navigation
Contributing
Thanks for helping! Bug reports, translations, ideas and pull requests are all welcome.
| Branch | What it is |
|---|---|
dev |
Development. Every pull request goes here. |
main |
Releases. Merging dev into main makes a new version. |
- Fork the repository (or, with access, branch from
dev). - Name the branch in kebab-case:
fix-<description>for a fix,<description>for a feature. - 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.
-
./gradlew buildpasses (it runs the tests andcompileAgainstLatest). See Building from Source. - Code that doesn't depend on a platform goes in
core; Paper-only code inpaper; mod code inmod-common(orfabric/neoforgefor 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), incore/src/main/resources/config.ymlwith a comment, and gets anameanddescriptionunderoptions.<key>in every language file. A change to an existing option's path or values needs an upgrade step and a newconfig-version(seeConfigUpgrade). - A new or changed text goes in every file in
lang/; changing a default text means a newversionin the language files (seeLanguageUpgrade). - Test it in game on Paper and, when it touches the mods, on Fabric or NeoForge.
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 -.
Fully automatic, on every pull request merged into main (.github/workflows/release.yml):
- Bumps the version in
gradle.properties: patch by default; theminorormajorlabel on the PR changes that, andskip-releaseskips the release. - Builds and tests with the new version.
- Commits the version and
CHANGELOG.mdtomain, tagsvX.Y.Zand creates the GitHub release with the jars. - Publishes on Modrinth (every jar), Hangar (the plugin) and CurseForge (the mods), each when its secret is set.
- Announces it on Discord.
- Merges
mainback intodev.
Pushes to dev are also posted to Discord with the plugin jar, as dev builds.
- Copy
core/src/main/resources/lang/en.ymltocore/src/main/resources/lang/<code>.ymland translate it, keeping the<placeholders>and the MiniMessage tags (see Languages). - Add the code to
Messages.BUNDLED_LANGUAGESand to the list in the comment ofgeneral.languageinconfig.yml. -
./gradlew :core:testrunsLanguageFilesTest, which checks the keys and placeholders. - Open the pull request with the translation label.
Use the forms on the issues page: Bug report or Feature request. Questions can also go to Discord.
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.
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.
Getting started
Playing
Server owners
Developers
Download