Skip to content
ID

Storage

This page documents persistent runtime data used by NyxoraChatManager.

Data Backend Location Persistent
Global Chat enabled/paused state YAML file plugins/NyxoraChatManager/state.yml Yes
AntiSpam history Memory Per player session No
AntiFlood history Memory Per player session No
Permission snapshots Memory Current online player identities No

NyxoraChatManager does not use SQLite, MySQL, or another database backend.

state.yml contains the global Chat state:

chat:
enabled: true
resume-at-epoch-millis: 0

The runtime writes two keys:

Key Type Meaning
chat.enabled Boolean Whether normal Chat is enabled.
chat.resume-at-epoch-millis Integer timestamp 0 for no timed resume, or a non-negative epoch-millisecond deadline.

The file may not exist immediately on the first startup. It is created when Chat state is persisted, including state-changing commands and normal plugin shutdown.

Chat-state commands persist the desired state before publishing the runtime change. If persistence fails, the command reports failure and does not apply that requested state transition.

A timed pause is restored at startup when its deadline is still in the future. If the persisted deadline is already expired, the plugin normalizes Chat back to enabled state and attempts to persist the normalized state.

State writes use a temporary file followed by an atomic replace when the filesystem supports it. When atomic move is unavailable, the plugin falls back to a normal replace operation.

For a consistent manual backup:

  1. stop the server;
  2. copy plugins/NyxoraChatManager/state.yml together with any configuration files you want to preserve;
  3. restore files while the server is stopped;
  4. start the server and verify /chat status.

Do not edit or replace state.yml while relying on an active runtime Chat state.

Startup requires chat.enabled to be a boolean. When present, chat.resume-at-epoch-millis must be an integer timestamp and must not be negative. Invalid persisted types or a negative timestamp cause Chat-state initialization to fail rather than silently accepting malformed state.

A write failure is logged. State-changing commands that require persistence return a failure message instead of applying the requested transition.