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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ out/
*.db-shm
*.db-wal
.env
scripts/test-servers/synthetic-player/node_modules/
scripts/test-servers/synthetic-player-26-2/node_modules/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# InviteCode

InviteCode is a Kotlin invitation and referral rewards plugin for Spigot and Paper. `InviteCodeKt` is the repository name; the plugin and its data directory are named `InviteCode`.
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. The final player experience and cross-version server matrix still require release-stage acceptance.
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. Folia 26.1.2 has passed an isolated experimental smoke test; optional integrations and the final player experience still require release-stage acceptance.

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), and [MySQL setup](docs/operations/mysql-storage.md). These documents are maintained in Traditional Chinese.

Expand Down
4 changes: 2 additions & 2 deletions docs/README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

本文件為 InviteCode 的主要繁體中文維護者說明;精簡英文介紹請見 [`README.md`](../README.md)。

InviteCode 是從零重寫的 Kotlin Minecraft 邀請與推薦獎勵插件;`InviteCodeKt` 是 repository 名稱,`Kt` 只表示實作使用 Kotlin。目標是以單一可安裝 JAR 支援 Spigot 與 Paper 1.8.8 到最新已測試版本,並透過隔離的 adapter 載入新版能力。
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 已完成串接;跨版本自動化 smoke 已建立,玩家實際操作與畫面呈現仍留待發行前真人驗收。
> 這個 repository 目前是 `0.1.0-SNAPSHOT`。舊版相容的 Bukkit 指令、聊天輸入、SQLite lifecycle、Qualification、可復原 Reward Delivery 與新版原生 Dialog adapter 已完成串接;Folia 26.1.2 的隔離合成玩家 smoke 也已通過。Folia 上的第三方整合與原生 Dialog 畫面、以及最終玩家體驗仍未完成驗收。

## 專案目標

Expand Down
9 changes: 9 additions & 0 deletions docs/adr/0004-folia-scheduler-ownership.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 依工作歸屬派送 Bukkit 與 Folia 任務

狀態:已採納(Folia 仍屬實驗性)

InviteCode 繼續提供單一 Java 8 相容 JAR。舊版 Spigot/Paper 使用 Bukkit scheduler;Folia 使用隔離於 `invitecode-platform-modern` 的反射 adapter,避免舊版 JVM 載入新版 scheduler API。只在偵測到 Folia 時選擇其 adapter,`plugin.yml` 才宣告 `folia-supported: true`。

背景儲存操作仍由單一 executor 執行,且先保存 Reward Action 的 `PROCESSING` 狀態。完成 callback 依歸屬派送:全域狀態、Console 指令與 Vault Economy 路徑進入 global scheduler;玩家 Statistic、permission、Placeholder、指令、訊息及私密輸入進入玩家 entity scheduler。玩家參照由登入/離線事件管理,排程器跟隨玩家跨 region;玩家在 callback 前離線時,線上動作保持 `PENDING`,已開始而結果不明的外部動作仍依 [ADR 0002](./0002-durable-reward-delivery.md) 進入 `UNCERTAIN`,不可自動重試。

此設計讓 Spigot 1.8.8、Paper 26.2 與 Folia 26.1.2 的同一份 JAR 得到實測覆蓋,並可在 Folia 兩個 region 排程執行緒上處理相距遙遠的玩家。它不保證任意第三方 Vault/Placeholder provider、未測 Folia 版本或原生 Dialog 視覺行為相容;這些項目需各自測試,不能由 `folia-supported` 欄位推論。測試範圍與剩餘限制記錄於 [Issue #12 證據](../testing/evidence/2026-09-24-issue-12-startup-matrix.md)。
2 changes: 2 additions & 0 deletions docs/configuration/qualifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ policies:

時間接受 `ms`、`s`、`m`、`h`、`d` 簡寫或 ISO-8601 Duration,例如 `30m`、`1d`、`PT2H`。Placeholder operator 支援 `EQUALS`、`NOT_EQUALS`、`CONTAINS`、`GREATER_THAN`、`GREATER_THAN_OR_EQUAL`、`LESS_THAN` 與 `LESS_THAN_OR_EQUAL`;大小比較要求實際值與設定值都是數字。

比較文字 `yes`、`no`、`on`、`off` 時,請將 `value` 寫成帶引號的字串,例如 `value: "yes"`。YAML 解析器可能把未加引號的寫法當成布林值,導致與 PlaceholderAPI 回傳的文字不相等。

Permission、Placeholder 或外部 provider 不存在時,condition 預設產生 `UNKNOWN`。可明確設定安全的退回行為:

```yaml
Expand Down
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 上的玩家流程、管理指令、儲存初始化、維護模式與人工驗收方式。可選擇 `SQLITE`、`MYSQL` 或小型單實例環境使用的 `JSON`。JSON 與 MySQL 的設定及復原細節分別見 [`json-storage.md`](./json-storage.md) 與 [`mysql-storage.md`](./mysql-storage.md)。
本文件說明 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)。

## 首次啟動

Expand Down
Loading
Loading