Contents
Class ShutdownReason
java.lang.Object
com.hypixel.hytale.server.core.ShutdownReason
- Since:
- 14/11/17
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShutdownReasonAuth failed to initialise and the server can't continuestatic final ShutdownReasonIf the singleplayer client crashes without shutting down the server and we detect this withProcessUtil.isProcessRunning(int)static final ShutdownReasonGeneric crash reasonstatic final ShutdownReasonThe working directory is inside the launcher install path.static final ShutdownReasonUsed when the server fails to load any asset packs.static final ShutdownReasonIf the server starts and is missing the mods/plugins that are specified inHytaleServerConfig.getModConfig()static final ShutdownReasonstatic final ShutdownReasonNormal server shutdownstatic final ShutdownReasonNormal server shutdownstatic final ShutdownReasonUsed when the server should restart to apply a staged update.static final ShutdownReasonUsed when we failed to validate some data that is required.static final ShutdownReasonstatic final ShutdownReasonIf the WorldGen config failed to load -
Constructor Summary
ConstructorsConstructorDescriptionShutdownReason(int exitCode, String name) ShutdownReason(int exitCode, String name, FormattedMessage message) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the formatted message for protocol and rich display.Returns the raw message content as a plain string for logging and simple display.getName()toString()withMessage(Message message) Returns a new ShutdownReason with the given message.
-
Field Details
-
SIGINT
Normal server shutdown -
SHUTDOWN
Normal server shutdown -
CRASH
Generic crash reason -
AUTH_FAILED
Auth failed to initialise and the server can't continue -
WORLD_GEN
If the WorldGen config failed to load -
CLIENT_GONE
If the singleplayer client crashes without shutting down the server and we detect this withProcessUtil.isProcessRunning(int) -
MISSING_REQUIRED_PLUGIN
If the server starts and is missing the mods/plugins that are specified inHytaleServerConfig.getModConfig() -
VALIDATE_ERROR
Used when we failed to validate some data that is required. -
MISSING_ASSETS
Used when the server fails to load any asset packs. -
UPDATE
Used when the server should restart to apply a staged update. The launcher script detects this code and applies the update before restarting. -
MOD_ERROR
-
VERIFY_ERROR
-
INVALID_INSTALL_DIR
The working directory is inside the launcher install path.
-
-
Constructor Details
-
ShutdownReason
-
ShutdownReason
-
-
Method Details
-
getExitCode
public int getExitCode() -
getName
- Returns:
- a unique name for this reason
-
getMessage
Returns the raw message content as a plain string for logging and simple display. For rich formatted display, usegetFormattedMessage()instead. -
getFormattedMessage
Returns the formatted message for protocol and rich display. -
withMessage
Returns a new ShutdownReason with the given message. -
toTelemetryString
- Returns:
- the telemetry string combining name and message (e.g., "crash: OutOfMemoryError")
-
toString
-