Documentation ¶
Index ¶
- Constants
- Variables
- func Channels(p *Message) (channels []string)
- func LegacyRegister(p *Message) bool
- func LegacyUnregister(p *Message) bool
- func McBrand(p *Message) bool
- func Register(p *Message) bool
- func TransformLegacyToModernChannel(name string) string
- func Unregister(p *Message) bool
- type Message
Constants ¶
Variables ¶
var InvalidIdentifierRegex = regexp.MustCompile(`[^a-z0-9\\-_]*`)
Functions ¶
func LegacyRegister ¶
Determines whether or not this plugin message is a legacy (<1.13) registration plugin message.
func LegacyUnregister ¶
Determines whether or not this plugin message is a legacy (<1.13) un-registration plugin message.
func McBrand ¶
McBrand determines whether or not this is a brand plugin message. This is shown on the client.
func Register ¶
Register determines whether or not this plugin message is being used to register plugin channels.
func TransformLegacyToModernChannel ¶
TransformLegacyToModernChannel transforms a plugin message channel from a "legacy" (<1.13) form to a modern one.
func Unregister ¶
Unregister determines whether or not this plugin message is being used to unregister plugin channels.
Types ¶
type Message ¶
Message is a Minecraft plugin message packet.
func ConstructChannelsPacket ¶
Constructs a channel (un)register packet. channels must not be empty! Note that the Message's Retained field remains nil.
func RewriteMinecraftBrand ¶
Rewrites the brand message to indicate the presence of the proxy.