mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
- [ADD] Added functionality to trigger a server restart from within UOX3, either via console ('R'), command ('restart) or JS Console Method (.BeginRestart()). This will first perform a world save, then do a clean shut down before restarting UOX3 in a new process
12 lines
206 B
JavaScript
12 lines
206 B
JavaScript
/// <reference path="../definitions.d.ts" />
|
|
// @ts-check
|
|
function ConsoleRegistration()
|
|
{
|
|
RegisterKey( 'r', "restart" );
|
|
RegisterKey( 'R', "restart" );
|
|
}
|
|
|
|
function restart()
|
|
{
|
|
Console.BeginRestart();
|
|
}
|