mirror of
https://github.com/Luzifer/terraria-docker.git
synced 2024-09-18 22:52:56 +00:00
Echo server saves into game
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9fe656f715
commit
8738fa2019
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 New Issue
Block a user