test
This commit is contained in:
parent
8c00e4cb04
commit
4d72bee53e
3
main.go
3
main.go
@ -300,6 +300,8 @@ func main() {
|
|||||||
if pausedBy != "" {
|
if pausedBy != "" {
|
||||||
sendChat(-436055948, fmt.Sprintf("Game unpaused by %s", pausedBy))
|
sendChat(-436055948, fmt.Sprintf("Game unpaused by %s", pausedBy))
|
||||||
pausedBy = ""
|
pausedBy = ""
|
||||||
|
} else {
|
||||||
|
sendChat(-436055948, "Game unpaused")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !paused && len(clients) == 1 { // server is client #1
|
if !paused && len(clients) == 1 { // server is client #1
|
||||||
@ -310,7 +312,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
_, err = conn.Write(px.Bytes())
|
_, err = conn.Write(px.Bytes())
|
||||||
logInfoDebug("Pausing")
|
logInfoDebug("Pausing")
|
||||||
sendChat(-436055948, "No players. Game paused.")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user