Service Status
This event requires the SERVICE_STATE intent to be enabled
Description
This event is triggered when the status of the server changes (i.e. restart)
Parameters
{ server: RustServer, status: "STOPPING" | "MAINTENANCE" | "UPDATING" | "STOPPED" | "STARTING" | "RUNNING" }
Example
import { RCEEvent, type ServiceStatusEventPayload } from "rce.js";
// ...
rce.events.on(RCEEvent.ServiceStatus, (payload: ServiceStatusEventPayload) => {
console.log(`[${payload.server.identifier}] - ${payload.status}`);
});
Last updated