Documentation ¶
Overview ¶
Package ark provides the basic RCON commands for an ARK Surival Server
Index ¶
- Variables
- type ARKChatMsg
- type ARKPlayer
- type ARKRcon
- func (a *ARKRcon) BanPlayer(steam64 string) error
- func (a *ARKRcon) Broadcast(message string) error
- func (a *ARKRcon) DestroyAllEnemies() error
- func (a *ARKRcon) DestroyWildDinos() error
- func (a *ARKRcon) DoExit() error
- func (a *ARKRcon) GetChat() (list []ARKChatMsg, err error)
- func (a *ARKRcon) KickPlayer(steam64 string) error
- func (a *ARKRcon) ListPlayers() (list []ARKPlayer, err error)
- func (a *ARKRcon) Query(cmd string) (resp string, err error)
- func (a *ARKRcon) RemoveWhitelist(steam64 string) error
- func (a *ARKRcon) SaveWorld() error
- func (a *ARKRcon) SendChatToID(steam64, message string) error
- func (a *ARKRcon) SendChatToPlayer(player, message string) error
- func (a *ARKRcon) SetMessageOfTheDay(motd string) error
- func (a *ARKRcon) SetTimeOfDay(time string) error
- func (a *ARKRcon) Slomo(multiplier int) error
- func (a *ARKRcon) SpawnDino(blueprint string, x_off, y_off, z_off, level int) error
- func (a *ARKRcon) UnbanPlayer(steam64 string) error
- func (a *ARKRcon) WhitelistPlayer(steam64 string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ARKChatMsg ¶
type ARKRcon ¶
type ARKRcon struct {
// contains filtered or unexported fields
}
func NewARKRconConnection ¶
func (*ARKRcon) DestroyAllEnemies ¶
Same as DestroyWildDinos but also kills tamed Dinos
func (*ARKRcon) DestroyWildDinos ¶
Dinos eventually respawn
func (*ARKRcon) GetChat ¶
func (a *ARKRcon) GetChat() (list []ARKChatMsg, err error)
GetChat returns a list of chat messages since the last call to getchat or an empty list in case there were none
func (*ARKRcon) KickPlayer ¶
func (*ARKRcon) ListPlayers ¶
ListPlayers returns a list of online players or an empty list
func (*ARKRcon) RemoveWhitelist ¶
func (*ARKRcon) SendChatToID ¶
func (*ARKRcon) SendChatToPlayer ¶
func (*ARKRcon) SetMessageOfTheDay ¶
func (*ARKRcon) SetTimeOfDay ¶
SetTimeOfDay expects the time format to be hh:mm
func (*ARKRcon) UnbanPlayer ¶
func (*ARKRcon) WhitelistPlayer ¶
Click to show internal directories.
Click to hide internal directories.