mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-12 10:52:25 +08:00
配置重载命令
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user