From 959505d092c6e8a434253f17150b1621492e4612 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Wed, 15 May 2019 16:09:26 +0200 Subject: [PATCH] player.moderator flag --- server/web/minetest.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/web/minetest.go b/server/web/minetest.go index b0dbed3..102ae12 100644 --- a/server/web/minetest.go +++ b/server/web/minetest.go @@ -38,11 +38,12 @@ type Minecart struct { } type Player struct { - Pos GenericPos `json:"pos"` - Velocity GenericPos `json:"velocity"` - Name string `json:"name"` - HP float64 `json:"hp"` - Breath float64 `json:"breath"` + Pos GenericPos `json:"pos"` + Velocity GenericPos `json:"velocity"` + Name string `json:"name"` + HP float64 `json:"hp"` + Breath float64 `json:"breath"` + Moderator bool `json:"moderator"` //TODO: stamina, skin, etc }