This commit is contained in:
hahwu 2025-07-29 10:24:04 +08:00
parent 292bb2de65
commit d704fa62cf

View File

@ -32,9 +32,9 @@ import (
)
func ReqGmCommand(player *Player, buf []byte) error {
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)
}
// 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)
// }
detail := &msg.ReqGmCommand{}
proto.Unmarshal(buf, detail)
return ReqGmCommand_(player, detail.Command)