Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicState ¶
type ServerProperties ¶
func LoadServerProperties ¶
func LoadServerProperties() (ServerProperties, error)
func (ServerProperties) GetOr ¶
func (sp ServerProperties) GetOr(key, defaultValue string) string
func (ServerProperties) GetRconSettings ¶
func (sp ServerProperties) GetRconSettings() (bool, string, string, int)
type State ¶
type State struct { PrevWoldVersion string `json:"-"` WorldVersion string `json:"worldVersion"` WhitelistUsers map[string]struct{} `json:"whitelist"` OpUsers map[string]struct{} `json:"op"` ServerProps ServerProperties `json:"serverProps"` // contains filtered or unexported fields }
func CreateState ¶
func CreateState(serverProps ServerProperties) (*State, error)
func (*State) AddToWhitelist ¶
func (*State) ToPublicState ¶
func (s *State) ToPublicState() PublicState
Click to show internal directories.
Click to hide internal directories.