Repository navigation
Conversation
D3ller
commented
Oct 16, 2026
Owner
- feat(config): add a configuration GUI to toggle stat synchronization #50 feat(config): add a configuration GUI to toggle stat synchronization
- feat(food): synchronize the food level across the group #51 feat(food): synchronize the food level across the group
- fix(remove): compare the owner UUID in a null-safe way #52 fix(remove): compare the owner UUID in a null-safe way
…50) Add /sharedgroup configuration, which opens a menu to enable or disable health, food and potions synchronization. The command is restricted to OPs who own the group and is refused during a game. Clicks and drags in the menu are cancelled so its items cannot be taken, and a failed save of configuration.yml is reported to the player instead of updating the menu.
The group now shares a single food level. Eating or losing hunger updates it for every player, and a player who gets out of sync (after a respawn or a reconnection) is brought back to the group value. The food level resets to 20 when a game starts and after a group death. Saturation is intentionally not shared, so food drains faster than in solo play; the README documents this choice.
Call equals on the player's UUID instead of the group owner's, as the other group commands do, so a missing owner cannot throw a NullPointerException.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.