hxp
2021-11-19 747288d83c72ce7e385805bad0754d735b048513
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
@@ -19,6 +19,7 @@
import ChPlayer
import PlayerControl
import PlayerFB
import CrossRealmPlayer
## GM命令执行入口
#  @param curPlayer 当前玩家
@@ -28,6 +29,10 @@
def OnExec(curPlayer, paramList):
    tick = GameWorld.GetGameWorld().GetTick()
    
    if GameWorld.IsCrossServer():
        CrossRealmPlayer.PlayerExitCrossServer(curPlayer)
        return
    if PlayerControl.GetCustomMapID(curPlayer):
        PlayerFB.DoExitCustomScene(curPlayer)
        return