titlecmd

package
v0.0.0-...-9991723 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = proxy.Plugin{
	Name: "TitleCmd",
	Init: func(ctx context.Context, p *proxy.Proxy) error {
		log := logr.FromContextOrDiscard(ctx)
		log.Info("Hello from Ping plugin!")

		p.Command().Register(titleCommand())
		event.Subscribe(p.Event(), 0, func(e *proxy.ServerConnectedEvent) {
			go func() {
				time.Sleep(time.Second)
				sendUsage(e.Player())
			}()
		})

		return nil
	},
}

Plugin is a ping plugin that handles ping events.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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