This commit is contained in:
hahwu 2025-07-16 17:21:42 +08:00
parent e402917a85
commit a3d1d25bd1

View File

@ -463,7 +463,10 @@ func ReqGmCommand_(player *Player, Command string) error {
} }
} }
player.HandleItem(items, msg.ITEM_POP_LABEL_GM.String()) player.HandleItem(items, msg.ITEM_POP_LABEL_GM.String())
case "resetCode":
BaseMod := player.PlayMod.getBaseMod()
BaseMod.AddCode = fmt.Sprintf("MMM-%s-%s", conf.Server.CountryCode, GoUtil.UniqueStringFromInt(int(BaseMod.Uid)))
BackUserInfo(player)
default: default:
return fmt.Errorf("Player %d ReqGmCommand:%v not found", player.M_DwUin, arg) return fmt.Errorf("Player %d ReqGmCommand:%v not found", player.M_DwUin, arg)
} }