Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statistics ¶
type Statistics struct { Groups StatsGroups `json:"stats"` Version int `json:"DataVersion"` }
Statistics represents a collection of versioned stats
func OpenStatistics ¶
func OpenStatistics(path string) (Statistics, error)
OpenStatistics will open and read the Statitics from the specified path (e.g /opt/minecraft/world/stats/playerid.json)
func ReadStatistics ¶
func ReadStatistics(r io.Reader) (Statistics, error)
ReadStatistics will decode the statistics from the provided io.Reader
type Time ¶
Time specific to how minecraft reads/writes it (Java)
func (*Time) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type User ¶
type User struct { Name string `json:"name"` ID string `json:"uuid"` Expires Time `json:"expiresOn"` }
User represents a user in the usercache.json
type UserCache ¶
type UserCache []User
UserCache represents users found in the cache
func OpenCache ¶
OpenCache will open and read the UserCache from the specified path (e.g /opt/minecraft/usercache.json)
type UserStatistics ¶
type UserStatistics struct { Statistics User }
UserStatistics includes the user and the statistics
Click to show internal directories.
Click to hide internal directories.