command

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonEncode

func JsonEncode(argv ...interface{}) (string, bool)

Types

type Command

type Command struct {
	Player     string   //玩家名
	PluginName string   //插件名
	Argv       []string //参数
	Cmd        string   //命令名
}

type PlayerGroup

type PlayerGroup struct {
	// contains filtered or unexported fields
}
var Group *PlayerGroup

func (*PlayerGroup) AddPlayer

func (pg *PlayerGroup) AddPlayer(groupname string, player string)

向组内添加玩家

func (*PlayerGroup) DelPlayer

func (pg *PlayerGroup) DelPlayer(groupname string, player string)

删除组内指定玩家

func (*PlayerGroup) GetPlayer

func (pg *PlayerGroup) GetPlayer() map[string][]string

func (*PlayerGroup) HasPlayer

func (pg *PlayerGroup) HasPlayer(groupname string, player string) bool

查询组内是否有指定玩家

type Text

type Text struct {
	Text  string `json:"text"`
	Color string `json:"color"`
}

Jump to

Keyboard shortcuts

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