Is a session running?
statusCheck whether a tModLoader session is running and identify it, providing a safe read-only alternative to error-triggering commands.
Instructions
Whether a session is running, and what it is.
The only read-only way to ask. Without it an agent that lost track had to
provoke an error to find out — launch fails when one exists, diag fails
when one does not — so the cheapest question on the surface was the one
that had to be asked by breaking something.
Reports what this server BELIEVES it started. It does not re-query the
process table, so it cannot tell you a game was closed from outside; stop
is what verifies against reality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| port | Yes | ||
| world | Yes | ||
| joined | Yes | ||
| player | Yes | ||
| running | Yes | ||
| started_pids | Yes |