mirror of
https://github.com/Luzifer/terraria-docker.git
synced 2024-11-08 10:40:00 +00:00
Echo server saves into game
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9fe656f715
commit
8738fa2019
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -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...")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue