fix(AutoReset): clean WorldEvent after reset #974#982
Merged
Conversation
Contributor
## 审查者指南
此PR确保在重置后完全清理世界事件,移除已弃用的CaiBot重置警告功能,重构插件初始化和命令注册(包括版本升级),并简化数据库查询调用。
#### 移除CaiBot字段后的ResetConfig的ER图
```mermaid
erDiagram
RESETCONFIG {
Dictionary Files
string[] PreResetCommands
SetWorldConfig SetWorld
}
RESETCONFIG ||--|| SETWORLDCONFIG : contains移除CaiBot字段后的ResetConfig的类图classDiagram
class ResetConfig {
+Dictionary~string, string~? Files
+string[]? PreResetCommands
+SetWorldConfig SetWorld
}
事件清理和重构后的AutoResetPlugin的类图classDiagram
class AutoResetPlugin {
+string FolderName
-Status _status
-GenerationProgress? _generationProgress
+string Name
+Version Version
+string Author
+void Initialize()
+void Dispose()
+void ResetCmd(CommandArgs? e)
+void ResetDataCmd(CommandArgs? e)
+void ResetSetting(CommandArgs? e)
+void OnServerJoin(JoinEventArgs args)
+void OnWorldSave(SaveEventArgs args)
+void PostReset()
+void ShowHelpText()
+void OnWho(CommandArgs? e)
}
文件级别变更
可能相关的issue
提示和命令与Sourcery互动
自定义您的体验访问您的 仪表板 以:
获取帮助Original review guide in EnglishReviewer's GuideThis PR ensures a full cleanup of world events after a reset, strips out the deprecated CaiBot reset-caution feature, refactors plugin initialization and command registration (including a version bump), and simplifies a database query call. ER diagram for ResetConfig after CaiBot fields removalerDiagram
RESETCONFIG {
Dictionary Files
string[] PreResetCommands
SetWorldConfig SetWorld
}
RESETCONFIG ||--|| SETWORLDCONFIG : contains
Class diagram for ResetConfig after CaiBot fields removalclassDiagram
class ResetConfig {
+Dictionary~string, string~? Files
+string[]? PreResetCommands
+SetWorldConfig SetWorld
}
Class diagram for AutoResetPlugin after event cleanup and refactorclassDiagram
class AutoResetPlugin {
+string FolderName
-Status _status
-GenerationProgress? _generationProgress
+string Name
+Version Version
+string Author
+void Initialize()
+void Dispose()
+void ResetCmd(CommandArgs? e)
+void ResetDataCmd(CommandArgs? e)
+void ResetSetting(CommandArgs? e)
+void OnServerJoin(JoinEventArgs args)
+void OnWorldSave(SaveEventArgs args)
+void PostReset()
+void ShowHelpText()
+void OnWho(CommandArgs? e)
}
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Closed
2 tasks
Controllerdestiny
approved these changes
Jun 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
更新插件/修复BUG
其他
Sourcery 总结
清理自动重置后的世界事件状态,移除过时的重置提示设置,提升插件版本,并更新更新日志。
Bug 修复:
增强:
文档:
杂务:
Original summary in English
Summary by Sourcery
Clean up world event states after auto-reset, remove obsolete reset-prompt settings, bump plugin version, and update changelog.
Bug Fixes:
Enhancements:
Documentation:
Chores: