players

package
v0.0.0-...-4d9d9e9 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlayersPlugin = proxy.Plugin{
	Name: "Ping",
	Init: func(ctx context.Context, p *proxy.Proxy) error {
		event.Subscribe(p.Event(), 0, onLogin())
		event.Subscribe(p.Event(), 0, onDisconnect())
		return nil
	},
}

Functions

func PlayerByName

func PlayerByName(username string) proxy.Player

func PlayerByUUID

func PlayerByUUID(id uuid.UUID) proxy.Player

func PlayerList

func PlayerList() []proxy.Player

Types

This section is empty.

Jump to

Keyboard shortcuts

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