Commit 17fae2cebdd681ae0ed8d9cec80641e591f3d9fd
1 parent
5037f473
正式服屏蔽gm指令
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/actions/GmAction.lua
| ... | ... | @@ -5,6 +5,10 @@ function _M.clientRequest(agent, data) |
| 5 | 5 | local role = agent.role |
| 6 | 6 | local action = _M[msg.cmd] |
| 7 | 7 | local bin = MsgPack.pack({ cmd = "指令失败" }) |
| 8 | + if true then | |
| 9 | + SendPacket(actionCodes.Gm_receiveResponse, bin) | |
| 10 | + return true | |
| 11 | + end | |
| 8 | 12 | if not action then |
| 9 | 13 | SendPacket(actionCodes.Gm_receiveResponse, bin) |
| 10 | 14 | return true | ... | ... |