Add tick information to server status
This commit is contained in:
parent
6ac5a559b5
commit
db38ad6091
3 changed files with 16 additions and 4 deletions
|
@ -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"`
|
||||
}
|
||||
|
||||
// ==============================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue