Skip to content

Add a per-player auto pickup toggle command - #3

Merged
awdrgyj8 merged 1 commit into
masterfrom
claude/auto-collect-toggle-design-xxsvdy
Aug 31, 2026
Merged

Add a per-player auto pickup toggle command#3
awdrgyj8 merged 1 commit into
masterfrom
claude/auto-collect-toggle-design-xxsvdy

Conversation

@awdrgyj8

Copy link
Copy Markdown
Member

Auto pickup was an all-or-nothing server setting: once enable-auto-pickup was on, every player with the permission had chopped drops forced into their inventory. Players who want the drops on the ground had no way out.

Add /atc autopickup (alias /atc pickup) as a self-only toggle, mirroring the existing /atc toggle. The choice is stored per player in the player_data table so it survives relogs and restarts, and is refused when auto pickup is off server-wide so nobody stores an "on" that does nothing.

The new autoPickupEnabled column is added to tables created by older versions via a JDBC-metadata check plus ALTER TABLE, defaulting existing players to on so behaviour does not change under them. New players follow the new defaultAutoPickup config key.

Auto pickup was an all-or-nothing server setting: once enable-auto-pickup
was on, every player with the permission had chopped drops forced into
their inventory. Players who want the drops on the ground had no way out.

Add /atc autopickup (alias /atc pickup) as a self-only toggle, mirroring
the existing /atc toggle. The choice is stored per player in the
player_data table so it survives relogs and restarts, and is refused when
auto pickup is off server-wide so nobody stores an "on" that does nothing.

The new autoPickupEnabled column is added to tables created by older
versions via a JDBC-metadata check plus ALTER TABLE, defaulting existing
players to on so behaviour does not change under them. New players follow
the new defaultAutoPickup config key.
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.

2 participants