Repository navigation
Configuration EN
The main config lives at plugins/LetsLearnEnglish/config.yml and is densely commented (in Chinese) — most of the time you can just follow the comments.
/lea reload covers most settings, but a subset of keys is read once at startup and requires a restart.
- Most of
config.yml(including every moduleenabledswitch) -
ai_config.yml'sapi-key,ai-chat.*, and scenario files achievements-config.yml-
messages/zh.ymlandmessages/en.yml(with merge-style upgrade when the version is behind) - Every word bank under
words/ - GUI layout and sound caches
- The statistics service (
statistics-server.*— reload restarts the HTTP server)
| Key | Why |
|---|---|
general.auto-save-interval |
The save task's period is fixed when scheduled; reload does not reschedule |
general.backup.enabled / .interval / .max-backups
|
The backup task is only scheduled at startup |
general.check-updates |
Only decides at startup whether to check online |
daily-reminder.reminder-hours |
The hour set is frozen into a constant when scheduled |
tts.enabled / tts.cache-days / tts.voicerss-api-key
|
TtsManager is constructed once at startup |
progress-system.leaderboard.update-interval |
Leaderboard refresh period is fixed when scheduled |
word-system.review.intervals / .mastered-review-interval-days
|
The interval array is frozen in the constructor |
database.* (type / sqlite.* / mysql.*) |
The database connection is established only at startup |
All three of these schedule their recurring task only at startup, so "false at startup" means the task was never scheduled at all — flipping it back to true only takes effect on the next start.
| Switch | Behaviour |
|---|---|
daily-reminder.enabled |
On at startup → reload can turn it off; off at startup → restart to turn on |
word-system.review.enabled |
Same |
general.backup.enabled |
Stricter: read once at startup only — changing to false via reload will not stop an already-scheduled backup task |
Use switches to turn features off, not permissions (permission nodes only cover a few admin/content entry points — see Commands). Every key in the table below is read live, so reload applies immediately; turning a feature off does not delete data, and player progress is intact when you turn it back on.
| Switch | When off |
|---|---|
server.enabled |
Master switch — everything off |
word-system.enabled |
Learning, review, wrong-answer notebook |
ai-chat.enabled |
AI conversation |
social.enabled |
Square feed and cheers |
duel.enabled |
Word duels |
checkin.enabled |
Check-in |
daily-challenges.enabled |
Daily challenges |
progress-system.enabled |
Leaderboards, achievements, rewards |
class-system.enabled |
Classes |
onboarding.enabled |
Onboarding |
progress-system:
rewards:
types:
money:
enabled: false # disabled by default
base-amount: 10.0
combo-bonus: trueInstalling Vault and actually paying money are two separate decisions. Coins require three gates to be true at once — progress-system.enabled, progress-system.rewards.enabled, and progress-system.rewards.types.money.enabled (the first two are on by default) — plus Vault being online. Correct answers, check-ins, daily challenges, and season settlement all go through this gate.
money:
daily-cap: 500 # max coins per player per day; 0 = unlimitedPrevents farming. Past the cap, answers still work — only coins stop, and the player is told.
word-system:
modes:
spelling:
enabled: true
case-sensitive: false
choice:
enabled: true
option-count: 4 # clamped to [2, 4]
fill_blank:
enabled: true
show-first-letter: trueBare /le word uses choice. When choice is disabled it falls back to spelling → fill_blank; if all three are off, the plugin replies with word.no-modes-enabled ("All learning modes are disabled. Please contact the admin.").
The canonical key for fill-in-the-blank is fill_blank (underscore). The legacy fill-blank (hyphen) is still read, with the new name taking precedence.
word-system:
review:
enabled: true
intervals: [1, 6, 24, 72, 168] # hours: 1h / 6h / 1d / 3d / 7d
mastery-threshold: 0.85 # leave the review pool at 85% mastery
mastered-review-interval-days: 30 # mastered words reviewed every 30 daysintervals and mastered-review-interval-days both require a restart (frozen at construction).
Meaning: after a correct answer, review in 1 hour; then 6 hours; then 24 hours… A wrong answer resets to the first interval.
ai-chat:
enabled: true
api-url: "https://api.deepseek.com/v1/chat/completions"
max-tokens: 128
daily-round-limit: 30 # rounds per player per day; 0 or negative = unlimitedThe API key lives in a separate ai_config.yml (not in version control; the plugin does not generate it, you must create it yourself):
api-key: "sk-your-key-here"Setting ai-chat.enabled to false makes /le dialogue refuse; nothing else is affected, and you do not need to delete the key file.
AI conversation is billed per use (DeepSeek's API). The daily round limit and cooldown are only rate limits — if you configure it, it costs money.
When running several backend servers sharing data:
- You must use MySQL (SQLite is a single-machine file; multiple servers overwrite each other)
- All servers' system clocks must agree
Season windows are derived as a pure function of "anchor date + fixed duration" at local-day granularity. A timezone mismatch shifts the season boundaries — server A thinks today is day 30, server B thinks day 31; worst case one server pays out twice while another gets an empty season. Review due dates compute incorrectly too.
# check the timezone
timedatectl
# You should see the same timezone with NTP sync on:
# Time zone: Asia/Shanghai (CST, +0800)
# System clock synchronized: yesseason.anchor-date must be identical in every backend's config.yml; changing duration-days or anchor-date requires changing all servers and reloading them together.
The full proxy deployment (inbound signing, proxy.server-name, loop suppression, cross-server cache limits) is on the Velocity Networks page.
Zero configuration. The file is plugins/LetsLearnEnglish/playerdata.db.
Manual backups must be taken with the server stopped — in WAL mode, copying only the .db file misses unmerged transactions. See Maintenance.
database:
type: mysql
mysql:
host: localhost
port: 3306
database: letslearnenglish
username: youruser
password: yourpassword
table-prefix: "lle_"The JDBC driver is shaded into the plugin JAR; nothing extra to install.
Changing database.* requires a restart (the connection is established only at startup).
statistics-server:
enabled: false # off by default
bind-address: "127.0.0.1" # localhost only
port: 8080
ip-whitelist: # CIDR supported
- "127.0.0.1"
- "192.168.1.0/24" # private-network example from the defaults
auth:
username: "admin"
password: "changeme" # ← change this!
cache-seconds: 120- Change the default password (
changemeis plaintext) - Make sure
ip-whitelistcontains only networks you trust - Preferably put it behind a reverse proxy with HTTPS
Each panel refresh runs 5 full-table aggregates, one of which — "distinct words answered by players" — takes about 4.8 seconds on a 50,000-player database; all 5 together take about 5.5 seconds. Those queries hold the single database connection lock the entire time — without caching, every 60 seconds the whole server's database operations would queue for 5+ seconds.
messages/zh.yml and messages/en.yml.
Upgrades merge language files: your edited values are kept, new keys are added, obsolete keys are retained, and a .bak snapshot is taken before upgrading. Upgrades do not overwrite your text.
config-version at the top of both files is the merge gate's reference. Editing text does not require changing it; only adding new keys does (and that is the plugin author's job).
The default config is 850+ lines, fully commented in Chinese. plugins/LetsLearnEnglish/config.yml is the source of truth.
The comments on key sections usually explain why something is designed that way; read them before changing something.