plugin

package
v0.0.0-...-d1826b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChatEventListeners []func(string, string) = []func(string, string){}

Functions

func RunPlugin

func RunPlugin(conn *minecraft.Conn, path string, bridge plugin_structs.PluginBridge)

func StartPluginSystem

func StartPluginSystem(conn *minecraft.Conn)

Types

type PluginBridgeImpl

type PluginBridgeImpl struct {
	// contains filtered or unexported fields
}

func (*PluginBridgeImpl) ConvertFunctionChainItemList

func (*PluginBridgeImpl) ConvertFunctionChainItemList(list map[string]plugin_structs.FunctionChainItem) interface{}

func (*PluginBridgeImpl) RegisterBuilder

func (*PluginBridgeImpl) RegisterBuilder(name string, function_cont func(config plugin_structs.MainConfig, blc chan *plugin_structs.Module) error) bool

func (*PluginBridgeImpl) RegisterEnum

func (*PluginBridgeImpl) RegisterEnum(desc string, parser func(string) byte, inv byte) int

func (*PluginBridgeImpl) RegisterFunction

func (*PluginBridgeImpl) RegisterFunction(function_cont plugin_structs.Function)

func (*PluginBridgeImpl) SendChat

func (br *PluginBridgeImpl) SendChat(content string) error

func (*PluginBridgeImpl) SendCommand

func (br *PluginBridgeImpl) SendCommand(commandstr string) error

func (*PluginBridgeImpl) SendCommandCB

func (br *PluginBridgeImpl) SendCommandCB(cmd string, cb func([]plugin_structs.CommandOutputMessage, string))

func (*PluginBridgeImpl) SendWSCommandCB

func (br *PluginBridgeImpl) SendWSCommandCB(cmd string, cb func([]plugin_structs.CommandOutputMessage, string))

func (*PluginBridgeImpl) SubscribeChat

func (br *PluginBridgeImpl) SubscribeChat(cb func(string, string))

func (*PluginBridgeImpl) Tellraw

func (br *PluginBridgeImpl) Tellraw(message string) error

Jump to

Keyboard shortcuts

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