玩家管理模块接入redis,已完整实现好友、多人世界的跨服交互功能
This commit is contained in:
1 parent
0a2e13fad3
commit
6fd3d6a349
25 files changed
+1094
-407
No files matched your search
@@ -225,7 +225,7 @@ func (c *CommandManager) SendMessage(executor any, msg string, param ...any) {
|
||||
case *model.Player:
|
||||
// 玩家类型
|
||||
player := executor.(*model.Player)
|
||||
GAME_MANAGER.SendPrivateChat(c.system, player, fmt.Sprintf(msg, param...))
|
||||
GAME_MANAGER.SendPrivateChat(c.system, player.PlayerID, fmt.Sprintf(msg, param...))
|
||||
case string:
|
||||
// GM接口等
|
||||
// str := executor.(string)
|
||||
|
||||
Reference in new issue
Block a user