Skip to main content

RestartServer

Initiate a server restart with customizable timing and notification options.
Server restarts will disconnect all players. Always provide adequate warning time and ensure important operations are completed first.

Syntax

Parameters

  • staffId (number): ID of the staff member initiating the restart
  • delay (number): Delay before restart in seconds (minimum 30 seconds)
  • options (table): Restart configuration options

Options

Return Values

  • success (boolean): Whether the restart was initiated successfully
  • status (string): Status message or error description

Example

Advanced Examples

Smart Restart Scheduling System

Emergency Restart System

Restart Management Commands