From 8738fa2019fe79580bb40677b769f4df9a9d2222 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 6 Jul 2018 18:32:40 +0200 Subject: [PATCH] Echo server saves into game Signed-off-by: Knut Ahlers --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 4a61639..5eb6809 100644 --- a/main.go +++ b/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...") + } } }