Class SaveConfirmation
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Recognises the server saying it has finished writing the world to disk.
public static class SaveConfirmation
- Inheritance
-
SaveConfirmation
- Inherited Members
Remarks
This is what makes a backup of a running server trustworthy. After save-all flush the
server writes everything it was holding and then says so; zipping before that line would copy a
world the JVM had not finished with.
The whole message has to be the confirmation, starting right where the log's own prefix ends
(MessageBody(string)): a player can type "Saved the game" in chat,
and that line also passes through the console. Matching it would let anyone on the server cut a
backup short. Looking for ]: Saved the game anywhere in the line was not enough — a
player who typed x]: Saved the game produced exactly that.
Methods
IsSaveFinished(string)
Whether this console line is the server confirming a save.
public static bool IsSaveFinished(string line)
Parameters
linestring