增加GM命令

This commit is contained in:
hahwu 2025-06-11 11:29:43 +08:00
parent 61b4fe2c4e
commit db9fb4ad85

View File

@ -406,6 +406,10 @@ func ReqGmCommand_(player *Player, Command string) error {
},
}, 2)
player.PushClientRes(MailMod.BackData())
case "resetNpc":
FriendMod := player.PlayMod.getFriendMod()
FriendMod.Npc = []int{}
FriendListBackData(player)
case "recoverUser":
file, err := os.OpenFile(conf.Server.GameConfPath+"user.info", os.O_RDWR|os.O_CREATE, 0666)
if err != nil {