Skip to content

Edit mode is not cleared when players disconnect or the plugin reloads #15

Description

@CYooBin10

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions