| 简体中文 | English |
⚠️ A plugin built by a high-school first-year student with AI assistance (vibe coding), still in early development
Questions and ideas are welcome in Issues; if you find it useful, a star helps ⭐
The Releases page is the single source of truth for downloadable builds. This README does not track version numbers — when the two disagree, trust Releases.
Most “English learning plugins” for Minecraft stop at flashcards: show a word, pick a meaning, add a point. That helps students recognize words, but not use them — and it doesn’t retain players. A week later nobody opens it again.
This plugin chains four things together:
| Step | What happens | Why it matters |
|---|---|---|
| 1. Drill | GUI shows the Chinese meaning → closes → you type the English word against a countdown | Real pressure and combos, not mindless clicking |
| 2. Review | Ebbinghaus spacing schedules each word’s return; misses come back | The forgetting curve, not “learn and forget” |
| 3. AI conversation | Talk to an AI using the words you just learned, get grammar corrections after | From “recognize” to “use” |
| 4. Reports | /lea report prints a teacher/parent report with weak words and progress |
Teachers see results |
The differentiators are steps 3 and 4 — most MC English plugins only have step 1.
The wrong one will not load. Two builds ship from the same source; only the compile target differs:
| Your server | Download this | Requires |
|---|---|---|
| Paper 1.21.4 – 1.21.11 | Let.s.Learn.English.-<version>.jar |
Java 21+ |
| Paper 26.1+ (26.2 / 26.3 / 26.4…) | Let.s.Learn.English.-<version>-mc26.jar |
Java 25+ |
Why two builds: Paper requires Java 25 from 26.x onward, and classes compiled for Java 21 will not load there. The code is identical — only the compile target differs. Putting the standard build on 26.x, or
-mc26on 1.21.x, will break.
# Drop the JAR into your server's plugin directory
cp Let.s.Learn.English.-1.0.7.jar /path/to/server/plugins/
# Restart the server (do not use /reload)
On first start the plugin generates its config, word banks, language files and database under
plugins/LetsLearnEnglish/.
In-game:
/lea info
This prints the version, server-version compatibility, and database type. If the version line
says 26.x detected, you put the standard build on a 26.x server — switch to -mc26.
Players run /le to open the main menu.
ai_config.yml is not generated on first start; create it manually and add your DeepSeek
API key:
# Path: plugins/LetsLearnEnglish/ai_config.yml
api-key: "sk-your-key"
Then /lea reload — no restart needed. Without it the console warns ai_config.yml not found!
and AI conversation is unavailable; everything else keeps working.
If your server has already run an older version, follow the steps below. You do not need to run any SQL by hand, and you do not need to edit any config — the plugin migrates its own persistent structures to this version on startup.
/reload or any plugin hot-swap mechanism.plugins/, replacing the old one. Pick the right build: the standard JAR
for Paper 1.21.x, the -mc26 JAR for Paper 26.x.| Action | What you should know |
|---|---|
| Message files are merged | messages/zh.yml and messages/en.yml are each judged by their own config-version. When behind, only missing keys are added; values you changed (wording, colour codes, placeholders) are always kept; keys the plugin no longer uses are left in place, not deleted. |
| Message files are backed up | Before merging, the original is saved next to it as .bak (i.e. zh.yml.bak / en.yml.bak). This is a single slot — only the most recent pre-upgrade copy is kept, and the next upgrade overwrites it. |
| Message file format changes | The file is rewritten in Bukkit’s standard YAML serialisation, so your hand-written comments and key order are not preserved. The original is in the .bak. |
| Missing tables are created | Created with CREATE TABLE IF NOT EXISTS. This version adds daily_answer_counters (the persisted counter behind the daily answering limit — see “A one-time change to expect” below). |
| Missing columns are added | The seasons table gains claim_owner and ledger_pending (season claim fencing and owed-ledger marking on multi-server networks). |
| Missing indexes are added | ai_chat_history gains idx_chat_timestamp, so purging old conversation logs no longer slows down linearly with player count. |
| Coin cap table is created lazily | daily_coin_counters is not created on startup — it is created the first time coins are actually paid out. If your server has never paid out coins, not seeing this table is normal. |
| Built-in word banks are replaced wholesale | When the bundled word banks have substantive changes (this version went from 1025 to 1357 words), words/*.yml is replaced as a whole on startup, with the old files backed up to words-backup-<old version>-<timestamp>/. If you edited the word files by hand, your edits will be replaced — copy them back from that backup directory into the new files. |
Creating tables, columns and indexes is idempotent: anything already present is skipped. If several servers share one MySQL database and all start at once, one of them may report a duplicate for the same column — that is an expected condition and is swallowed, not a failure.
Message-file merging and word-bank replacement run on startup and are re-run on /lea reload. By
then config-version is already current, so repeat calls leave the files untouched. The database
table/column/index creation runs on startup only — /lea reload does not recreate tables.
Back up at least these two; archiving the whole plugins/LetsLearnEnglish/ folder is the simplest
approach:
plugins/LetsLearnEnglish/playerdata.db — all player learning data. The upgrade itself does not
alter its structure, but a backup is your only way back.plugins/LetsLearnEnglish/messages/ — every message you have customised.SQLite runs in WAL mode, so do not just cp the database file for a hot backup. Take a snapshot
with VACUUM INTO (the command is in the collapsible section under FAQ).
daily_answer_counters is new in this version. In older versions, “how many questions answered
today” existed only in memory and was never written to disk, so there is no source of truth to
backfill from. The consequence:
On the day you upgrade, every existing player’s daily answering counter starts from 0, which makes
word-system.daily-limit(default 50) effectively full for that day.
This is a one-day, one-time effect, not a bug, and it clears itself at midnight. There is no server-side workaround — the only way to make that day accurate is for players to genuinely use up the quota by answering.
Check the log. A successful merge prints one INFO line:
Merged messages/zh.yml (v26 -> v28): <n> user value(s) kept, <n> new key(s) added,
<n> obsolete key(s) kept, <n> type conflict(s) resolved (pre-upgrade snapshot: messages/zh.yml.bak)
en.yml gets an identical line. The v26 -> v28 in parentheses is the message file’s
config-version, not the plugin version; upgrading from an older release starts at a lower number.
The number that matters is new key(s) added — it must be greater than 0.
If the word banks were replaced, you also get a WARNING: Built-in word banks upgraded to ....
Then check the file. Open plugins/LetsLearnEnglish/messages/zh.yml directly:
config-version is now 28zh.yml.bak sits next to itanswer-)/lea info only prints the plugin version, server compatibility and database type — it does not
reflect the migration result, so do not use it as your check.
config.ymlThe main config has no migration mechanism — the config-version at the top is a human-readable
marker only, and changing it triggers nothing. New config keys fall back to their built-in defaults
when read: omitting them from config.yml is fine and no error is raised, the plugin just uses the
default. Add them only when you want to customise them.
| Symptom | Fix |
|---|---|
Installed, but /le does nothing |
Run /lea info to confirm it loaded, then check server.enabled in config.yml — on multi-server networks, survival/PvP servers are often set to false. See WIKI 5.1 |
Unsupported class file major version |
You put the standard build on a 26.x server. Switch to -mc26 and run the server on Java 25 |
| AI never replies | Almost always a missing/invalid ai_config.yml. Check the console for ai_config.yml not found! or Invalid API key, fix it, then /lea reload. See WIKI 5.8.1 |
| On a multi-server network, check-in pays out twice / coins double | JVM timezones differ. The plugin books by plain yyyy-MM-dd dates, so two servers with different day boundaries each count their own. Pin it in the startup args (before -jar) — see the collapsible section below |
Changed config, but /lea reload didn’t apply it |
Some keys are startup snapshots and won’t be rescheduled. Full list in the collapsible section below |
| Where is player data? How do I back it up? | plugins/LetsLearnEnglish/playerdata.db (SQLite). The plugin backs up on a timer to backups/, keeping 7 by default. Manual backups must account for WAL — see below |
| The database file only grows | SQLite DELETE marks pages reusable without returning disk. You need a manual VACUUM — see below |
| Can I edit the word banks or add my own words? | Yes. Edit plugins/LetsLearnEnglish/words/*.yml then /lea reload, or import with /lea importwordbank. Template in words/README.md |
| Does it support Spigot / Purpur / Folia? | Paper only. The plugin uses Paper-exclusive APIs (Adventure components, Server#getMinecraftVersion) that Spigot lacks |
| Do I need Vault / PlaceholderAPI? | Both optional. Vault for coin rewards, PlaceholderAPI for %lle_*% placeholders. Neither is required to play |
/le guide re-issues it, veterans skip automatically/le historythinking-mode / reasoning-effort); default sends not one extra byteachievements-config.yml/lea report produces a plain-text report (overview / daily detail / weak words / cumulative results / a note for parents), single-player and whole-server comparison/lea reloadconfig.yml, every key documenting its behavior and side effectsVACUUM INTO for snapshots/lea reload covers most config (a few startup-snapshot keys need a restart; see the collapsible section)/le (aliases /learn, /english)| Command | Description |
|---|---|
/le menu |
Open the main menu |
/le word [difficulty] [mode] |
Start a drill (difficulty: beginner / intermediate / advanced; mode: choice / spelling / fill_blank) |
/le review |
Review words due now |
/le wrong |
Open the wrong-answer book |
/le guide |
View onboarding progress / re-issue the handbook |
/le dialogue [scenario] |
Start an AI scenario conversation |
/le history |
Browse AI conversation history (details include summaries and AI feedback) |
/le save_scenario <name> |
Export the current AI scenario as a share code |
/le load_scenario <code> |
Import a share code as a personal scenario |
/le stats |
View learning statistics |
/le progress |
Open your profile |
/le profile [player] |
View a player’s profile |
/le leaderboard |
View leaderboards (coins / words / combo / season) |
/le challenge |
View today’s challenge progress |
/le checkin |
Daily check-in for coins |
/le duel <player> |
Challenge a player (accept / quit / gui) |
/le square [mode] |
Open the English Square (feed / weekly / monthly / alltime / all) |
/le season |
View the current season, time left, and your rank |
/le class |
View your class and its board |
/le help |
Show help |
/lea (alias /learnadmin)| Command | Description |
|---|---|
/lea reload |
Hot-reload config, AI settings, word banks, language files, sound cache, statistics service (a few startup-snapshot keys need a restart) |
/lea info |
Show plugin info (version / compatibility / database type) |
/lea diagnose |
Self-diagnostics (config, database, dependencies, permissions) |
/lea report <player\|all> [week\|lastweek\|<N>d] |
Generate a teacher/parent report (TXT under exports/reports/) |
/lea reset <player> |
Reset a player’s data (two-step: prompt first, then confirm) |
/lea export |
Export player data |
/lea exportwordbank <difficulty> |
Export a word bank to YAML |
/lea importwordbank <file.yml> |
Import a word bank from exports/ |
/lea class create\|delete\|add\|remove\|list |
Class management (requires the class system) |
/lea broadcast <message> |
Broadcast to all sub-servers via the proxy (needs Velocity / BungeeCord) |
/lea duel cancel <player> |
Force-dissolve a player’s duel (no win/loss recorded) |
/lea ignore-update |
Ignore this update notice |
/lea help |
Show admin help |
The plugin registers exactly 4 permission nodes, all defaulting to OP.
Player features mostly need no permission — /le menu, /le word, /le review, /le square,
/le profile, /le wrong, /le checkin, /le duel, /le history, /le season and friends are
gated by module switches in config.yml, not by permissions.
The one exception is scenario import — /le load_scenario and the personal-scenario GUI need
letslearnenglish.scenario.import, because they write external content into the server’s scenario
list and deserve separate authorization from ordinary play.
| Node | Default | Purpose |
|---|---|---|
letslearnenglish.admin |
op | All /lea subcommands plus the scenario GUI’s delete action |
letslearnenglish.report |
op | Only /lea report — grant teachers/parent reps report access without full admin |
letslearnenglish.ai.reload |
op | Only reload AI config (ai_config.yml + ai_scenarios.yml), for content maintainers |
letslearnenglish.scenario.import |
op | Scenario import and personal-scenario GUI view/delete |
Note:
letslearnenglish.ai.reloadis not equivalent to/lea reload— it only refreshes the AI section. To grant “can change the API key” without full admin, this is enough.
Key settings (config.yml, fully commented in Chinese):
general:
enabled: true # Per-server master switch (survival/PvP servers often false)
language: "zh" # Default language (zh/en)
check-updates: true # Check for updates on startup
prefix:
zh: "&8[&b英语学习&8] &f"
en: "&8[&bEnglish&8] &f"
word-system:
enabled: true # Module switch (hide entry + silence events + keep data)
words-per-session: 10 # Words per session
answer-timeout: 30 # Answer timeout in seconds
daily-reminder:
enabled: true
on-join: true # Send a reminder on join
reminder-hours: [9, 14, 20]
Full section list: general / prefix / database (SQLite / MySQL) / word-system /
onboarding / duel / ai-chat / scenario / money / progress-system /
gui + gui-layout / feedback / achievement-system / proxy /
daily-reminder / daily-challenges / checkin / tts / statistics-server /
report / social + english-square / season / class-system
These are snapshotted at startup or used to schedule periodic tasks; /lea reload will not
reschedule them:
general.auto-save-interval · general.backup.* · general.check-updates ·
daily-reminder.reminder-hours · tts.enabled / tts.cache-days / tts.voicerss-api-key ·
progress-system.leaderboard.update-interval · word-system.review.intervals ·
mastered-review-interval-days · database.*
Everything else (all module enabled switches, ai-chat.*, language files, word banks,
gui-layout, achievement toggles, the statistics dashboard) applies on /lea reload.
See DEPLOYMENT_WIKI.md 5.7.1.
proxy.inbound-secret)Player (no client mod needed)
└─ /le → main menu GUI → drill / review / AI chat / square
│
└─ Paper server plugin (this repo, Java 21 / 25)
├─ Drill state machine WordLearningManager (countdown, combo scoring)
├─ Spaced repetition ReviewScheduler (Ebbinghaus 1h ~ 168h)
├─ AI conversation AIChatManager → HTTPS → DeepSeek API
├─ Data layer PlayerDataStore (in-memory cache + persistence)
│ ├─ SQLite (default, single file, WAL)
│ └─ MySQL (shared across sub-servers)
└─ Optional integration Vault (coins) · PlaceholderAPI (%lle_*%) · Web dashboard
| Layer | What’s used |
|---|---|
| Server | Paper 1.21.4 – 1.21.11 (Java 21) / Paper 26.1+ (Java 25) |
| Language | Java 21 (105 source files, ~59,600 lines) |
| Database | SQLite (default, bundled) / MySQL (mysql-connector-j shaded into the JAR) |
| AI | DeepSeek API via java.net.http.HttpClient, async with per-player rate limiting |
| Tests | JUnit 5 + Mockito, 1969 tests plus a JaCoCo coverage gate (55.39% line coverage, 11264/20334) |
| Build | Maven with two profiles (default / -Pmc26) |
Requirements: JDK 21 (JDK 25 for the -Pmc26 profile), Maven 3.9+
# Standard build (Paper 1.21.4 – 1.21.11)
mvn verify
# 26.x build (Paper 26.1+)
mvn -Pmc26 verify
mvn verify compiles, runs the tests and enforces the JaCoCo coverage gate — it is the standard
command for validating a change.
mvn package -DskipTestsis for quick local packaging only — do not use it to validate a change, since it skips the coverage gate too.
The JAR lands in target/. The two profiles produce
Let's Learn English!-<version>.jar and Let's Learn English!-<version>-mc26.jar
(GitHub replaces ! and spaces with . on upload, so Release assets appear as
Let.s.Learn.English.-<version>.jar).
%lle_*% placeholders)Why Paper only: the plugin uses Paper-exclusive APIs (Adventure
net.kyoricomponents,Server#getMinecraftVersion) that do not exist on Spigot.
The MySQL driver is shaded into the JAR, so no extra driver jar is needed. If a self-built JAR reports
ClassNotFoundException: com.mysql.cj.jdbc.Driver, confirm theshade-mysql-driverexecution ran (mvn packageoutput should be ~3 MB;unzip -lshould listcom/mysql/).
The code isn’t beautiful, but every fix is pinned by tests. If you want to make it better — come play. Issues and PRs are welcome.
CONTRIBUTING.md (中文) / CONTRIBUTING-EN.md — how to report, how to PR, gates and testing requirementsSECURITY.md (中文) / SECURITY-EN.md — what the plugin sends, where credentials live, how to report a vulnerabilitymvn verify (see “Building” above)/lea info), server version, Java version, repro steps, and console logs| Document | Contents |
|---|---|
DEPLOYMENT_WIKI.md |
Deployment handbook: requirements, install steps, every config key, troubleshooting, command reference (Chinese) |
CONTRIBUTING.md / CONTRIBUTING-EN.md |
Contributing guide (中文 / English) |
SECURITY.md / SECURITY-EN.md |
Security policy (中文 / English): data handling, credential locations, vulnerability reporting |
THIRD-PARTY-NOTICES.md |
Third-party components and word-bank sources |
src/main/resources/words/README.md |
Word-bank field template, sources, licenses and known quality limits |
CHANGELOG.md |
Version history |
| Releases | JAR downloads (no token required) |
GNU General Public License v3.0 only (GPL-3.0-only). Full text in LICENSE.
Word-bank sources and licenses (see THIRD-PARTY-NOTICES.md and
words/README.md):
Per-entry content (definitions, phonetics, examples, synonyms/antonyms) is original to this project and released under the project license.
Known quality limits (stated plainly): the phonetics of the 332 newly added words were converted from CMUdict American pronunciation and agree with the rest of the bank’s British IPA only about 58%–68% of the time — not manually verified word by word. About 37% of Tatoeba example sentences contain 1–3 out-of-vocabulary content words and are not manually verified sentence by sentence. If something looks wrong, edit the YAML and
/lea reload.
</a>