1
0
mirror of https://github.com/Luzifer/terraria-docker.git synced 2024-09-16 13:58:28 +00:00

Echo server saves into game

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-07-06 18:32:40 +02:00
parent 9fe656f715
commit 8738fa2019
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -84,6 +84,11 @@ func outputLoop(in io.Reader, out io.Writer) {
// that whenever a player leaves...
fmt.Fprintln(out, "save")
}
if strings.Contains(line, "Backing up world file") {
// Announce a successful server save through console
fmt.Fprintln(out, "say World saved...")
}
}
}