Storage
This page documents persistent runtime data used by NyxoraChatManager.
Storage Overview
Section titled “Storage Overview”| 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.
Storage Locations
Section titled “Storage Locations”state.yml contains the global Chat state:
chat: enabled: true resume-at-epoch-millis: 0The 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.
Persistence Behavior
Section titled “Persistence Behavior”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.
Backup and Recovery
Section titled “Backup and Recovery”For a consistent manual backup:
- stop the server;
- copy
plugins/NyxoraChatManager/state.ymltogether with any configuration files you want to preserve; - restore files while the server is stopped;
- start the server and verify
/chat status.
Do not edit or replace state.yml while relying on an active runtime Chat state.
Failure Behavior
Section titled “Failure Behavior”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.