✏️ 增加 setblock 避免冲突

This commit is contained in:
fumiama
2021-09-09 12:31:57 +08:00
parent 6e0b754a66
commit bd88c68208
12 changed files with 15 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ func init() {
servers["ftbi"] = "115.28.186.22:25710"
servers["ges"] = "115.28.186.22:25701"
engine.OnCommand("mclist").
engine.OnCommand("mclist").SetBlock(true).
Handle(func(ctx *zero.Ctx) {
model := extension.CommandModel{}
_ = ctx.Parse(&model)

View File

@@ -30,7 +30,7 @@ func init() {
"- /mclist servername\n" +
"- https://github.com/Suwings/MCSManager",
})
engine.OnCommand("mcstart").
engine.OnCommand("mcstart").SetBlock(true).
Handle(func(ctx *zero.Ctx) {
model := extension.CommandModel{}
_ = ctx.Parse(&model)
@@ -38,7 +38,7 @@ func init() {
result := start(model.Args)
ctx.Send(result)
})
engine.OnCommand("mcstop").
engine.OnCommand("mcstop").SetBlock(true).
Handle(func(ctx *zero.Ctx) {
model := extension.CommandModel{}
_ = ctx.Parse(&model)