From 292bb2de6557e1f8ae13ee05005afd99f9db1bd5 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Mon, 28 Jul 2025 09:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8GM=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Gm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Gm.go b/src/server/game/Gm.go index 6b5c87b6..0db27d4a 100644 --- a/src/server/game/Gm.go +++ b/src/server/game/Gm.go @@ -32,6 +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) + } detail := &msg.ReqGmCommand{} proto.Unmarshal(buf, detail) return ReqGmCommand_(player, detail.Command)