Add tick information to server status

This commit is contained in:
Marc Di Luzio 2020-06-06 16:37:57 +01:00
parent 6ac5a559b5
commit db38ad6091
3 changed files with 16 additions and 4 deletions

View file

@ -17,8 +17,10 @@ func (s Server) Status() (r StatusResponse, err error) {
// StatusResponse is a struct that contains information on the status of the server
type StatusResponse struct {
Ready bool `json:"ready"`
Version string `json:"version"`
Ready bool `json:"ready"`
Version string `json:"version"`
Tick int `json:"tick"`
NextTick string `json:"nexttick,omitempty"`
}
// ==============================