package app.entities.server.request; import app.entities.server.players.RCONPlayer; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; @Data public class PlayerOnServer extends RCONPlayer { @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) float pos_x = 0.0F; @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) float pos_y = 0.0F; @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) float pos_z = 0.0F; //int duration_seconds = 0; @JsonGetter public float[] getPos() { return new float[]{pos_x, pos_y, pos_z}; } public int clz = 0; public int team = 0; }