update pause/unpause msg
This commit is contained in:
2
ttd.go
2
ttd.go
@@ -589,6 +589,7 @@ func (s *ServerTTD) Pause() {
|
||||
err := s.Send(px.Bytes())
|
||||
|
||||
s.ComputeClientTime()
|
||||
bot.SendChat(cfg.Telegram.ChatID, "Game is paused.")
|
||||
|
||||
s.Status.Paused = true
|
||||
logErrorDebug(err, "Server.Pause : Send()")
|
||||
@@ -610,6 +611,7 @@ func (s *ServerTTD) Unpause() {
|
||||
err := s.Send(px.Bytes())
|
||||
|
||||
s.ComputeClientTime()
|
||||
bot.SendChat(cfg.Telegram.ChatID, "Game is unpaused.")
|
||||
|
||||
s.Status.Paused = false
|
||||
logErrorDebug(err, "Server.Unpause : Send()")
|
||||
|
||||
Reference in New Issue
Block a user