master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
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
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This branch is .
Latest commit
Git stats
Files
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"}})