增加账号拷贝GM
This commit is contained in:
parent
e27b59283e
commit
e21196906a
@ -284,6 +284,15 @@ func ReqGmCommand_(player *Player, Command string) error {
|
|||||||
}
|
}
|
||||||
BaseMod := player.PlayMod.getBaseMod()
|
BaseMod := player.PlayMod.getBaseMod()
|
||||||
BaseMod.Uid = Uid
|
BaseMod.Uid = Uid
|
||||||
|
case "copyUser":
|
||||||
|
p1 := new(Player)
|
||||||
|
p1.InitPlayer(arg[1])
|
||||||
|
BaseMod := p1.PlayMod.getBaseMod()
|
||||||
|
BaseMod.Uid = player.M_DwUin
|
||||||
|
BaseMod.NickName = player.PlayMod.getBaseMod().NickName
|
||||||
|
BaseMod.LoginTime = GoUtil.Now()
|
||||||
|
player.PlayMod.mod_list = p1.PlayMod.mod_list
|
||||||
|
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user