master
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2 branches 6 tags
Code
This branch is .

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   args := os.Args
   args = args[1:]
say hello everyone  //对所有人说hello everyone
tell Alice hello    //对Alice说hello
Execute debug start //执行tps命令
func (hp *Yinyin) Handle(c *command.Command, s lib.Server) {
    s.Say(fmt.Sprintf("%s对所有人说:嘤嘤嘤!", c.Player)) //调用lib.Server接口的say方法对全服人说话
}
....
//注册冷插件
PluginsList.RegisterPlugin("命令", &PluginName{})                //注册XXX插件
....
....
return []lib.Parser{
 	....
 	&XXXParser{},
 	....
 }
s.Say(command.Text{"hello", "green"}, command.Text{"everyone", "red"})

s.Tell(playerName, command.Text{"hello", "green"}, command.Text{playerName, "red"})

//也可以传入数组
s.Say([]command.Text{command.Text{"hello", "green"}, command.Text{"everyone", "red"}})

s.Tell(playerName, []command.Text{command.Text{"hello", "green"}, command.Text{playerName, "red"}})