From 605e5968854c78024be2adc5307cb097554c009c Mon Sep 17 00:00:00 2001 From: "C.Nelhomme" <64921289+D3ller@users.noreply.github.com> Date: Thu, 15 Oct 2026 12:06:30 +0200 Subject: [PATCH] chore(release): prepare SharedStats 1.1.0 (#46) --- .github/release-notes/v1.1.0.md | 14 ++++++++++++++ .github/workflows/release.yml | 30 +++++++++++++++++++++++++++--- build.gradle.kts | 2 +- src/main/resources/plugin.yml | 2 +- 4 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 .github/release-notes/v1.1.0.md diff --git a/.github/release-notes/v1.1.0.md b/.github/release-notes/v1.1.0.md new file mode 100644 index 0000000..b6e33bc --- /dev/null +++ b/.github/release-notes/v1.1.0.md @@ -0,0 +1,14 @@ +## Added + +- `/sharedgroup enable health` and `/sharedgroup disable health` turn health synchronization on or off. The setting is saved in `configuration.yml` and can only be changed outside a game. + +## Changed + +- Damage handling has been rebuilt. Minecraft now applies damage itself, so armor, enchantments, absorption, knockback and hurt animations behave exactly like vanilla. The plugin then shares the health each player actually lost with the rest of the group. +- A lethal hit is now handled before the player dies: a totem held by the player or found in any group member's inventory saves the whole group, otherwise the whole group dies. +- Deaths that bypass totems, such as the void or `/kill`, now kill the whole group too. + +## Fixed + +- Standing in cactus, lava or fire no longer drains the group's health almost instantly: invulnerability frames work again. +- Health regeneration no longer cancels damage taken during the same tick. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d42024f..b5ea4a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,11 +60,35 @@ jobs: --verify-tag --generate-notes --title "$GITHUB_REF_NAME" fi - - name: Publish the Modrinth version + - name: Read the release changelog + id: release env: GH_TOKEN: ${{ github.token }} + run: | + { + echo "jar=$(ls build/libs/*.jar)" + echo "changelog<> "$GITHUB_OUTPUT" + + - name: Publish the Modrinth version + env: MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + MODRINTH_CHANGELOG: ${{ steps.release.outputs.changelog }} run: | test -n "$MODRINTH_TOKEN" - MODRINTH_CHANGELOG="$(gh release view "$GITHUB_REF_NAME" --json body --jq .body)" \ - ./gradlew modrinth + ./gradlew modrinth + + - name: Publish the CurseForge file + uses: itsmeow/curseforge-upload@v3.1.2 + with: + token: ${{ secrets.CF_API_TOKEN }} + project_id: "1741500" + game_endpoint: bukkit + game_versions: "26.2" + file_path: ${{ steps.release.outputs.jar }} + display_name: SharedStats ${{ github.ref_name }} + release_type: release + changelog: ${{ steps.release.outputs.changelog }} + changelog_type: markdown diff --git a/build.gradle.kts b/build.gradle.kts index 1a52857..673c30b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "fr.korastrip.sharedstats" -version = "1.0.2" +version = "1.1.0" modrinth { projectId.set("c9FDN1zY") diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f891677..0b9ae60 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: SharedStats -version: 1.0.2 +version: 1.1.0 main: fr.korastrip.paperplugin.SharedStats author: Kora description: Shared your food and your health with your friends.