Labels: medium, bug, state-management
Description
Edit mode is stored in a class-level dictionary and is only removed when the player enters done.
It is not cleared when:
- The player disconnects.
- The plugin reloads.
- The edited shop is deleted.
- An exception interrupts the edit session.
Impact
- Returning players may remain in edit mode.
- Normal chat may continue to be cancelled.
- Stale player and shop entries remain in memory.
- Deleted shops may still receive edit commands.
Expected behavior
Store edit sessions by player UUID and clear them on disconnect, plugin disable, shop deletion, and session timeout.
Labels: medium, bug, state-management
Description
Edit mode is stored in a class-level dictionary and is only removed when the player enters
done.It is not cleared when:
Impact
Expected behavior
Store edit sessions by player UUID and clear them on disconnect, plugin disable, shop deletion, and session timeout.