Repository navigation
feat: 實作 Qualification Policy 與 provider API - #17
Merged
Merged
Conversation
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.
Issue #8 需要一套可設定、可稽核且能由其他插件擴充的 Qualification 流程;原本只有 Invitation 與 SQLite persistence 結構,尚無 policy parser、condition provider 或重新評估流程。
本 PR 加入版本化 Qualification Policy、OR group/AND condition 短路求值、穩定 SHA-256 revision,以及遊玩時間、經過時間、登入日數、permission、Placeholder 與管理員核准 provider。Provider 缺失或失敗會安全地產生
UNKNOWN/設定的UNSATISFIED;成功 qualification 會將 Invitation 與造成通過的 facts 原子保存,既有 Qualified Invitation 不會被一般重新評估反轉。另提供外部 provider API、SQLite facts 批次 transaction、繁體中文設定文件與設定範例。實際讀取
qualifications.yml、收集 Bukkit/Placeholder 值及 executor 排程保留給後續 Bukkit 工作流程 Issue 串接。驗證:
mise exec -- .\gradlew.bat check shadowJarmise exec java@local-8 -- .\gradlew.bat clean check shadowJarCloses #8