From 49d3a89c86edfd6e7f0b5c0e30ef71766703a46a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 02 十一月 2019 16:26:40 +0800 Subject: [PATCH] 8321 【主干】【后端】GM工具优化(禁言及封号相关数据优化,同步更新AccState 及 ExAttr17, GM工具支持离线/在线操作及查询) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGMOper.py | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGMOper.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGMOper.py index eec4eb2..13fc89f 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGMOper.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGMOper.py @@ -55,6 +55,13 @@ delList.append(curOperValue) continue + if curOperValue == IPY_GameWorld.gmForbidTalk: + if not curPlayer.GetAccState() & pow(2, ChConfig.Def_PysForbidTalk): + GameWorld.DebugLog("玩家账号状态已被解除禁言,删除该GMOper命令!") + DoClearOper(curPlayer, curOperValue) + delList.append(curOperValue) + continue + #执行GM命令 DoOper(curPlayer, curOperValue) @@ -214,7 +221,7 @@ curFindPlayer_GMOper.Sync_SaveToDB() - curTagPlayer.SetAccState(IPY_GameWorld.pysForbidden) + PlayerControl.SetPlayerAccState(curTagPlayer, IPY_GameWorld.pysForbidden) curTagPlayer.Kick(IPY_GameWorld.disGMKick) return @@ -236,8 +243,8 @@ curFindPlayer_GMOper.Sync_SaveToDB() - curTagPlayer.SetAccState(IPY_GameWorld.pysForbidden) - + PlayerControl.SetPlayerAccState(curTagPlayer, IPY_GameWorld.pysForbidden) + curTagPlayer.Kick(IPY_GameWorld.disGMKick) return -- Gitblit v1.8.0