Skip to content

feat: configuration GUI and food synchronization - #53

Merged
D3ller merged 3 commits into
mainfrom
develop
Oct 16, 2026
Merged

D3ller merged 3 commits into
mainfrom
develop

Conversation

@D3ller

@D3ller D3ller commented Oct 16, 2026

Copy link
Copy Markdown
Owner

…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.
@D3ller
D3ller merged commit be9c0cb into main Oct 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant