events

package
v0.0.0-...-b730334 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlayerChatEvent playerChatEvent
View Source
var PlayerJoinEvent playerJoinEvent
View Source
var PlayerLoginEvent playerLoginEvent

Triggered early in login process. Checks for whitelist/ban should be done here.

Functions

This section is empty.

Types

type PlayerChatData

type PlayerChatData struct {
	Player     entities.Player
	Recipients []entities.Player
	Message    chat.Message
	Format     string // First argument will be Player.Name, second will be Message
}

type PlayerJoinData

type PlayerJoinData struct {
	Player  entities.Player
	Message string
}

type PlayerLoginData

type PlayerLoginData struct {
	Name        string
	Conn        net.Conn
	Result      PlayerLoginResult
	KickMessage string
}

type PlayerLoginResult

type PlayerLoginResult int8
const (
	LoginAllowed PlayerLoginResult = iota
	KickBanned
	KickFull
	KickOther
	KickWhitelist
)

Jump to

Keyboard shortcuts

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