Documentation ¶
Index ¶
Constants ¶
View Source
const ( IpForwardingChannel = "velocity:player_info" DefaultForwardingVersion = 1 WithKeyForwardingVersion = 2 WithKeyV2ForwardingVersion = 3 LazySessionForwardingVersion = 4 ForwardingMaxVersion = LazySessionForwardingVersion )
Variables ¶
This section is empty.
Functions ¶
func CreateForwardingData ¶
func CreateForwardingData( hmacSecret []byte, address string, player ConnectedPlayer, requestedVersion int, ) ([]byte, error)
CreateForwardingData creates the forwarding data for the given player in the Velocity format.
Types ¶
type ConnectedPlayer ¶
type ConnectedPlayer interface { ID() uuid.UUID Username() string GameProfile() profile.GameProfile Protocol() proto.Protocol IdentifiedKey() crypto.IdentifiedKey }
ConnectedPlayer represents a connected player.
Click to show internal directories.
Click to hide internal directories.