This commit is contained in:
hahwu 2025-07-29 10:24:04 +08:00
parent 2d131d9e74
commit 5836a3d873

View File

@ -32,9 +32,9 @@ import (
) )
func ReqGmCommand(player *Player, buf []byte) error { func ReqGmCommand(player *Player, buf []byte) error {
if conf.Server.GameName != "pet_home" && conf.Server.GameName != "merge_pet_sdk" { // if conf.Server.GameName != "pet_home" && conf.Server.GameName != "merge_pet_sdk" {
return fmt.Errorf("Player %d ReqGmCommand not support in game %s", player.M_DwUin, conf.Server.GameName) // return fmt.Errorf("Player %d ReqGmCommand not support in game %s", player.M_DwUin, conf.Server.GameName)
} // }
detail := &msg.ReqGmCommand{} detail := &msg.ReqGmCommand{}
proto.Unmarshal(buf, detail) proto.Unmarshal(buf, detail)
return ReqGmCommand_(player, detail.Command) return ReqGmCommand_(player, detail.Command)