plugin

package
v0.0.0-...-246bd56 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

*

  • 快速备份插件
  • 编写者:Underworld511

Index

Constants

View Source
const Data = `` /* 302-byte string literal not displayed */

Variables

This section is empty.

Functions

func CreatePluginsList

func CreatePluginsList(isload bool) (PluginMap, PluginMap)

Types

type BasePlugin

type BasePlugin struct {
}

func (*BasePlugin) Close

func (hp *BasePlugin) Close()

func (*BasePlugin) Handle

func (hp *BasePlugin) Handle(c *command.Command, s lib.Server)

func (*BasePlugin) Init

func (hp *BasePlugin) Init(s lib.Server)

type Calculator

type Calculator struct{}

func (*Calculator) Close

func (ca *Calculator) Close()

func (*Calculator) Handle

func (ca *Calculator) Handle(c *command.Command, s lib.Server)

func (*Calculator) Init

func (ca *Calculator) Init(s lib.Server)

type Here

type Here struct {
	Dim  string //玩家所在的维度,"0":"主世界","-1":"地狱","1":"末地"
	PosX string //玩家的x坐标
	PosY string //玩家的y坐标
	PosZ string //玩家的z坐标
}

func GetDim

func GetDim(playerName string, svr lib.Server, h *Here) *Here

func GetPosition

func GetPosition(playerName string, svr lib.Server, h *Here) *Here

func (*Here) Close

func (h *Here) Close()

func (*Here) Handle

func (h *Here) Handle(c *command.Command, s lib.Server)

func (*Here) Init

func (h *Here) Init(s lib.Server)

type HotPlugin

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

热加载插件类型

func (*HotPlugin) Close

func (hp *HotPlugin) Close()

func (*HotPlugin) Handle

func (hp *HotPlugin) Handle(c *command.Command, s lib.Server)

func (*HotPlugin) Init

func (hp *HotPlugin) Init(s lib.Server)

type PluginMap

type PluginMap map[string]lib.Plugin

func (PluginMap) DelPlugin

func (pm PluginMap) DelPlugin(name string) (lib.Plugin, bool)

移除插件

func (PluginMap) GetHotPlugins

func (pm PluginMap) GetHotPlugins(is_reload bool)

加载热插件

func (PluginMap) RegisterPlugin

func (pm PluginMap) RegisterPlugin(name string, lp lib.Plugin)

注册冷插件

type QuickBackupY

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

func (*QuickBackupY) Close

func (qb *QuickBackupY) Close()

func (*QuickBackupY) Handle

func (qb *QuickBackupY) Handle(c *command.Command, s lib.Server)

func (*QuickBackupY) Init

func (qb *QuickBackupY) Init(s lib.Server)

type QuickImageY

type QuickImageY struct{}

func (*QuickImageY) Close

func (qi *QuickImageY) Close()

func (*QuickImageY) Handle

func (qi *QuickImageY) Handle(c *command.Command, s lib.Server)

func (*QuickImageY) Init

func (qi *QuickImageY) Init(s lib.Server)

type SDChatPlugin

type SDChatPlugin struct{}

func (*SDChatPlugin) Close

func (hp *SDChatPlugin) Close()

func (*SDChatPlugin) Handle

func (hp *SDChatPlugin) Handle(c *command.Command, s lib.Server)

func (*SDChatPlugin) Init

func (hp *SDChatPlugin) Init(s lib.Server)

type TpsPlugin

type TpsPlugin struct{}

func (*TpsPlugin) Close

func (hp *TpsPlugin) Close()

func (*TpsPlugin) Handle

func (hp *TpsPlugin) Handle(c *command.Command, s lib.Server)

func (*TpsPlugin) Init

func (hp *TpsPlugin) Init(s lib.Server)

type Yinyin

type Yinyin struct {
}

func (*Yinyin) Close

func (hp *Yinyin) Close()

func (*Yinyin) Handle

func (hp *Yinyin) Handle(c *command.Command, s lib.Server)

func (*Yinyin) Init

func (hp *Yinyin) Init(s lib.Server)

Directories

Path Synopsis
* websocket客户端
* websocket客户端
* 坐标记录插件 * 编写者:Underworld511
* 坐标记录插件 * 编写者:Underworld511

Jump to

Keyboard shortcuts

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