配置重载命令

This commit is contained in:
UnKownOwO
2023-02-03 22:36:39 +08:00
parent 849fcdf93d
commit c790c5b66a
3 changed files with 30 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ func (c *CommandManager) OpCommand(cmd *CommandMessage) {
}
player.IsGM = 1
c.SendMessage(player, "权限修改完毕现在你是GM啦 %v", cmd.Args)
c.SendMessage(player, "权限修改完毕现在你是GM啦~")
}
// TeleportCommand 传送玩家命令
@@ -250,6 +250,17 @@ func (c *CommandManager) GiveCommand(cmd *CommandMessage) {
}
}
// ReloadConfigCommand 帮助命令
func (c *CommandManager) ReloadConfigCommand(cmd *CommandMessage) {
executor := cmd.Executor
LOCAL_EVENT_MANAGER.localEventChan <- &LocalEvent{
EventId: ReloadGameDataConfig,
}
c.SendMessage(executor, "成功发送重载配置请求。")
}
// GcgCommand Gcg测试命令
func (c *CommandManager) GcgCommand(cm *CommandMessage) {
player := cm.Executor.(*model.Player)