Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

InviteCode is a Kotlin invitation and referral rewards plugin for Spigot and Paper, with experimental Folia support. `InviteCodeKt` is the repository name; the plugin and its data directory are named `InviteCode`.

The project is currently `0.1.0-SNAPSHOT`. It builds one Java 8 compatible plugin JAR and keeps newer Minecraft APIs behind isolated adapters. SQLite and MySQL 8.4 are production storage backends; JSON is available for small single-instance installations. Cross-version, storage recovery, and optional integration checks are recorded in the [current artifact retest](docs/testing/evidence/2026-10-02-issue-12-current-artifact-retest.md). Folia remains experimental; automated checks and [player acceptance](docs/testing/current-artifact-human-acceptance.md) are tracked separately.
The project is currently `0.1.0-SNAPSHOT`. It builds one Java 8 compatible plugin JAR and keeps newer Minecraft APIs behind isolated adapters. SQLite and MySQL 8.4 are production storage backends; JSON is available for small single-instance installations. The [release gate conclusion](docs/testing/issue-12-release-gates.md) records automated evidence and player acceptance confirmed on 2026-10-13 for Spigot 1.8.8, Paper 26.2, and Folia 26.1.2. Folia remains experimental. These results cover the tested artifact and versions; a formal 1.0 release has not been published.

The complete maintainer guide is in [繁體中文](docs/README.zh-TW.md) and is the primary maintained documentation. See also the [product specification](docs/spec/invitecode-1.0.md), [Bukkit operations](docs/operations/bukkit-workflow.md), [JSON setup](docs/operations/json-storage.md), [MySQL setup](docs/operations/mysql-storage.md), [offline anonymization](docs/operations/offline-anonymization.md), and [cross-backend transfer](docs/operations/cross-backend-transfer.md). These documents are maintained in Traditional Chinese.

Expand Down
6 changes: 3 additions & 3 deletions docs/README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
InviteCode 是從零重寫的 Kotlin Minecraft 邀請與推薦獎勵插件;`InviteCodeKt` 是 repository 名稱,`Kt` 只表示實作使用 Kotlin。單一可安裝 JAR 支援 Spigot 與 Paper 1.8.8 到最新已測試版本,並以隔離 adapter 實驗性支援 Folia 26.1.2。

> [!IMPORTANT]
> 這個 repository 目前是 `0.1.0-SNAPSHOT`。舊版相容的 Bukkit 指令、聊天輸入、SQLite lifecycle、Qualification、可復原 Reward Delivery 與新版原生 Dialog adapter 已完成串接;Folia 26.1.2 的隔離合成玩家 smoke 也已通過。Folia 上的第三方整合與原生 Dialog 畫面、以及最終玩家體驗仍未完成驗收。
> 這個 repository 目前是 `0.1.0-SNAPSHOT`。跨版本、儲存與復原自動證據已完成;使用者於 2026-10-13 確認 `1405745` 在 Spigot 1.8.8、Paper 26.2、Folia 26.1.2 的人工驗收通過,並已透過 PR #30 合併至 `develop`。完整範圍見[發行門檻結論](./testing/issue-12-release-gates.md)。Folia 維持實驗性,其第三方整合不能由 Paper 的結果推定;尚未正式發布 1.0。

## 專案目標

Expand Down Expand Up @@ -43,7 +43,7 @@ mise exec java@local-8 -- .\gradlew.bat clean check shadowJar

`local-8` 與 `local-11` 由開發機的 mise 設定連結至既有 JDK。GitHub Actions 沒有這些本機 alias,因此 CI 透過 `MISE_JAVA_VERSION` 改用對應的 Temurin Java 8 與 Java 11。

可安裝的骨架 JAR 會輸出至:
可安裝的插件 JAR 會輸出至:

```text
invitecode-plugin/build/libs/InviteCode-0.1.0-SNAPSHOT.jar
Expand Down Expand Up @@ -102,6 +102,6 @@ Qualification Reward 與 Inviter Milestone Reward 會先以穩定冪等鍵保存

## 目前狀態

最新 develop 產物、跨核心/backend 證據及固定 Human 部署狀態見[本輪驗證紀錄](./testing/evidence/2026-10-02-issue-12-current-artifact-retest.md)。真人驗收使用保留資料的三台固定測服,依[短版步驟](./testing/current-artifact-human-acceptance.md)補齊最終產物證據;歷史已通過項目保留,正式發行與遠端交付另依授權。
目前以[Issue #12 發行門檻結論](./testing/issue-12-release-gates.md)為驗證狀態入口;[自動紀錄](./testing/evidence/2026-10-02-issue-12-current-artifact-retest.md)與[真人驗收紀錄](./testing/current-artifact-human-acceptance.md)分開保存。三台固定測服的本次人工驗收已通過,不再列為待驗收。文件收尾、GitHub Issue 結案及正式發行是不同階段,遠端操作另依授權。

實作工作記錄於本 repository 的 GitHub Issues。不規劃相容或匯入舊版 InviteCode 的資料與設定。
2 changes: 1 addition & 1 deletion docs/operations/bukkit-workflow.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bukkit 操作與維護

本文件說明 InviteCode 在 Spigot/Paper 上的玩家流程、管理指令、儲存初始化、維護模式與人工驗收方式;Folia 26.1.2 目前僅有[實驗性 smoke 證據](../testing/evidence/2026-09-24-issue-12-startup-matrix.md),第三方整合尚未驗證。可選擇 `SQLITE`、`MYSQL` 或小型單實例環境使用的 `JSON`。JSON 與 MySQL 的設定及復原細節分別見 [`json-storage.md`](./json-storage.md) 與 [`mysql-storage.md`](./mysql-storage.md)。
本文件說明 InviteCode 在 Spigot/Paper 上的玩家流程、管理指令、儲存初始化、維護模式與人工驗收方式;Folia 26.1.2 已有固定產物自動證據與 2026-10-13 使用者驗收,仍維持實驗性,第三方整合限制見[發行門檻結論](../testing/issue-12-release-gates.md)。可選擇 `SQLITE`、`MYSQL` 或小型單實例環境使用的 `JSON`。JSON 與 MySQL 的設定及復原細節分別見 [`json-storage.md`](./json-storage.md) 與 [`mysql-storage.md`](./mysql-storage.md)。

## 首次啟動

Expand Down
2 changes: 1 addition & 1 deletion docs/operations/cross-backend-transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ MySQL → SQLite/JSON 時,將 MySQL 設為 `--from-backend mysql`,目的
- MySQL 初始化或匯入中斷:目的 database 保留 `invitecode_transfer_guard`,插件會拒絕啟用。不要手工刪除 guard 來繞過檢查;先保留事故證據,使用全新空白 database 重試,或從經驗證的備份還原後再處理。MySQL DDL 不能靠交易回滾清除。
- 若切換設定後需要回復來源,先停止目的地所有寫入者;目的地啟用後新增的資料不會自動回流,須先人工核對差異。不得同時讓來源與目的地接受新 Claim 或獎勵交付。

真人遊戲內操作驗收依 Issue #12 延後。隔離測試與 dump 不得使用正式玩家資料。
三核心遊戲內人工驗收已於 2026-10-13 由使用者確認通過,範圍見 [Issue #12 發行門檻結論](../testing/issue-12-release-gates.md);此確認不新增跨 backend 搬移的真人測試主張。搬移仍以本文件的隔離自動證據為據;隔離測試與 dump 不得使用正式玩家資料。
14 changes: 9 additions & 5 deletions docs/testing/current-artifact-human-acceptance.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# 最新產物短版真人驗收

本輪只補最終產物證據。先前三台確認畫面、同意/不同意、逾時與重啟通過的紀錄保留,不要求重新執行整套長流程。自動結果與部署狀態見[最新產物驗證紀錄](./evidence/2026-10-02-issue-12-current-artifact-retest.md)。三台部署與 migration、重啟及資料保留比對已完成,可執行下列步驟。
## 2026-10-13 驗收結果:通過

## 待驗收版本
使用者明確回覆「`1405745` 在 folia 26.1.2、paper 26.2、spigto 1.8.8 進行完成驗收,可以進行合併」。此為三台的整體人工驗收確認,不補造逐步截圖、客戶端版本或個別操作 log。受測固定 JAR 與先前部署證據依下節記錄;PR #30 已合併至 `develop`,合併 commit 為 `1b46780ccc5bfbbe4ff63898999852f61e5fa218`。

先前三台確認畫面、同意/不同意、逾時與重啟通過的紀錄保留。自動結果與部署狀態見[最新產物驗證紀錄](./evidence/2026-10-02-issue-12-current-artifact-retest.md),逐條判定見[發行門檻結論](./issue-12-release-gates.md)。下列步驟保留供日後同範圍複驗,不代表目前仍待人工操作。

## 受測版本

- 產品來源:`418c8298e8deb6c7fdef66d6e0ff67f78d807a89`,已合入 develop `fb215c09ee4bbce96050ef4aebf97a1905ed984a`。
- 插件 SHA-256:`D6AF246F62256E2BEF1FB441DC282B4ADE6001269776D8966C7652F5E264ED6C`。
- 固定測服:`invitecode-spigot-1.8.8`、`invitecode-paper-26.2`、`invitecode-folia-26.1.2`,位於 `D:\Code\Java\Plugin\InstanceHarbor\instances\Human\InviteCode\`。
- 使用既有世界、帳號與邀請資料;不清空資料、不重設資格。三台保持同 IP `DENY`,本清單不需要新的成功 Claim。

## 每台依序操作
## 保留的複驗步驟

1. 從 Windows 開始功能表開啟已安裝的 **PowerShell 7**,在桌面視窗執行:

Expand Down Expand Up @@ -37,10 +41,10 @@

6. 完成後切回 lobby,正常停止該台,再對下一台重複步驟 1–5。測試結束後三台 InviteCode 都關閉;共用入口若其他測試還需要使用,不必為本插件關閉。

## 回覆及限制
## 日後複驗的回覆方式與限制

請分別回覆三台的「切服/指令、六碼提示與複製、資格預檢、繁體中文、重啟保留」是否通過;失敗時附實際畫面或文字及 `logs/latest.log`,保留原資料,不重建伺服器。不要提供帳號密碼或 anti-abuse key。

此短版不會重新建立 Invitation。原生 Dialog 的實際提交與同意/不同意沿用已確認的歷史結果;合成封包只算自動證據。若日後要以全新合資格帳號複驗完整流程,再另外界定測試帳號與可回復資料;不要為了開啟 Dialog 直接 unlink 或清空現有資料。

真人結果通過後,仍須完成 Issue #12 的門檻結論與文件交付;這不代表允許 push、PR、merge、tag 或正式發行。Folia 保持實驗性,第三方 provider 的支援範圍另列限制。
本次真人結果與 PR #30 合併已確認;Issue #12 的門檻結論見[收尾文件](./issue-12-release-gates.md)。後續文件 PR、Issue 結案及正式發行另依授權;Folia 保持實驗性,第三方 provider 的支援範圍另列限制。
Loading
Loading