Server scheduled restart.

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-04-29 17:01:39 +00:00
parent 4dbd679824
commit 1dac175a47
6 changed files with 162 additions and 1 deletions

View File

@@ -307,7 +307,14 @@ public class Shutdown extends Thread
{
_shutdownMode = restart ? GM_RESTART : GM_SHUTDOWN;
_log.warning("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") issued shutdown command. " + MODE_TEXT[_shutdownMode] + " in " + seconds + " seconds!");
if (activeChar != null)
{
_log.warning("GM: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") issued shutdown command. " + MODE_TEXT[_shutdownMode] + " in " + seconds + " seconds!");
}
else
{
_log.warning("Server scheduled restart issued shutdown command. Restart in " + seconds + " seconds!");
}
if (_shutdownMode > 0)
{