Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/release-notes/v1.1.0.md
Original file line number Diff line number Diff line change
@@ -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.
30 changes: 27 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<CHANGELOG_EOF"
gh release view "$GITHUB_REF_NAME" --json body --jq .body
echo "CHANGELOG_EOF"
} >> "$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
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "fr.korastrip.sharedstats"
version = "1.0.2"
version = "1.1.0"

modrinth {
projectId.set("c9FDN1zY")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading