velocity

package
v0.37.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL