Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Player ¶
type Player interface { // Identity returns the IdentityData of the player. Identity() login.IdentityData // Send transfers the player to a server. Send(info server.Info, config ...server.ConnectConfig) error // Message sends a chat message to a player. Message(message string) error // Kick kicks a player from the proxy, if no reason is provided a default reason is used. Kick(reason ...string) // Server returns the current server that a player is in, if they aren't in a server it will be nil. Server() server.Server // WritePacket writes a packet directly to the player. WritePacket(packet packet.Packet) error }
Player is a player connected to the proxy.
type Proxy ¶
type Proxy interface { Motd() string SetMotd(string) Players() map[string]Player GetPlayer(string) (Player, error) }
Proxy is as the name implies, a proxy.
var VastleX Proxy = vastlex
VastleX is the main structure for the proxy.
Click to show internal directories.
Click to hide internal directories.