Repository navigation
Commands EN
Player features have essentially no permission gate — every player can use them by default. To turn a feature off, use the module switches in config.yml (see "Module switches" at the end of this page). Only two player commands actually check permissions: /le load_scenario (needs letslearnenglish.scenario.import) and /le duel cancel (needs letslearnenglish.admin).
The four nodes early docs told people to configure — letslearnenglish.use / .word.* / .dialogue.* / .progress.* — were never checked by code and have since been removed. Granting them has no effect and they can be safely deleted.
Aliases: /learnenglish, /learn, /english
| Command | Description |
|---|---|
/le or /le menu
|
Open the main menu |
/le word |
Open the word bank selection screen |
/le word <tier> |
Start a quiz directly |
/le word <tier> <mode> |
Start a quiz with a specific mode |
/le review |
See due review words and start reviewing |
/le wrong |
Open the wrong-answer notebook (words missed 3+ times) |
Quiz modes:
| Argument | Mode | Gameplay |
|---|---|---|
spelling |
Spelling | See Chinese, type the English word |
choice |
Multiple choice | See Chinese, pick from 4 options (the default when no argument is given) |
fill_blank |
Fill in the blank | See an English sentence, fill in the missing word |
Word bank tiers: beginner / intermediate / advanced. Bare /le word defaults to choice; when choice is disabled it falls back to spelling → fill_blank.
| Command | Description |
|---|---|
/le dialogue |
Open scenario selection |
/le dialogue <scenario> |
Start that scenario directly (run again to exit) |
/le history |
View conversation history and AI feedback |
/le save_scenario <name> |
Export the current conversation as a share code |
/le load_scenario <code> |
Import a shared scenario code (needs scenario.import) |
Built-in scenarios:
| Scenario | Content |
|---|---|
village_trade |
Village trading |
enchanting |
Enchanting table |
nether_trip |
Nether expedition |
building |
Building a cottage |
restaurant |
Village restaurant |
free_talk |
Free talk |
| Command | Description |
|---|---|
/le progress or /le profile
|
View your own profile |
/le profile <player> |
View someone else's profile (refused if they are hidden) |
/le stats |
Same as above — opens the profile GUI |
/le stats <player> |
Plain-text stats (works from console — see below) |
/le leaderboard |
Leaderboards |
/le challenge |
Today's challenge progress |
/le square [mode] |
English square (feed / weekly / monthly / alltime / all) |
/le duel <player> |
Challenge someone to a word duel |
/le duel accept |
Accept a duel invitation |
/le duel quit |
Leave a duel |
/le duel gui |
Reopen the current duel interface |
/le duel cancel <player> |
Force-dissolve a duel (needs admin; no winner is decided) |
/le checkin |
Daily check-in |
/le season |
Current season and your rank |
/le class |
Your class and class leaderboard (requires class-system.enabled and season.enabled) |
/le guide |
Onboarding progress |
/le help |
Help |
Bare /le stats opens the profile GUI and is player-only; with a player name it outputs plain text and works from the console / a QQ bot too. The output carries no colour codes so bots can relay it verbatim.
/le stats Steve
===== Learning stats for Steve =====
Total score: 12480
Correct: 1032
Wrong: 178
Accuracy: 85.3%
Sessions: 42
Achievements unlocked: 3/22
When a player queries someone else who has turned off either "show in square" or "show results", they get a single line:
Steve has hidden their results.
The console (including QQ bots) is also subject to both gates. viewerId only has a value when the sender is a player; it is always null for the console, so selfView is always false — as soon as the target has either switch off, the console and QQ bots get the "hidden" reply too.
This is what the code actually does today. The javadoc in
LearnCommandclaims "the console deliberately skips both gates", which does not match the code; if that intent is to be honoured, the fix belongs in code (add asender instanceof Playerguard), not in the docs.
Alias: /learnadmin
| Command | Description | Permission |
|---|---|---|
/lea reload |
Hot-reload config, AI section, word bank, messages, sounds, stats service | admin |
/lea info |
Version, compatibility, database type | admin |
/lea diagnose [save] |
Self-check: print the switches and runtime state actually in effect; save also writes exports/diagnose-<timestamp>.txt
|
admin |
/lea export |
Export online player data to CSV (into exports/) |
admin |
/lea reset <player> |
Reset a player's data (two-step confirmation) | admin |
/lea exportwordbank <tier> |
Export a word bank to YAML | admin |
/lea importwordbank <file> |
Import a word bank YAML | admin |
/lea broadcast <message> |
Cross-server broadcast (requires Velocity / BungeeCord) | admin |
/lea duel cancel <player> |
Force-dissolve a duel (no winner) | admin |
/lea report <player|all> [period] |
Generate a parent/teacher report (TXT) |
report or admin
|
/lea class create|delete|add|remove|list |
Class management | admin |
/lea ignore-update |
Ignore this startup's update notice | admin |
/lea help |
Admin help | admin |
/lea reset Steve # first run: confirmation prompt only
/lea reset Steve confirm # second run: actually executes
/lea report Anna week # Anna's report for this week
/lea report Anna lastweek # last week
/lea report Anna 30d # last 30 days
/lea report all # whole-server comparison (capped at 50, truncation noted)
Reports land in plugins/LetsLearnEnglish/exports/reports/.
| Node | Covers | Default |
|---|---|---|
letslearnenglish.admin |
All /lea subcommands except report, /le duel cancel
|
OP |
letslearnenglish.ai.reload |
The "refresh API key" button on the scenario screen (reloads ai_config.yml and scenario files; no other admin ability) |
OP |
letslearnenglish.scenario.import |
/le load_scenario, personal scenario management |
OP |
letslearnenglish.report |
/lea report (grantable to teachers on its own, without the dangerous reset / reload / broadcast powers) |
OP |
admin and ai.reload are two independent nodes — the refresh button only accepts the latter; with only admin you cannot click it, grant it separately if needed.
# Administrator
/lp user Admin permission set letslearnenglish.admin true
# Teacher: reports only
/lp user Teacher permission set letslearnenglish.report true
# Content author: scenario import
/lp user Steve permission set letslearnenglish.scenario.import true
# Operations: can only refresh the AI key, no other config changes
/lp user Ops permission set letslearnenglish.ai.reload true
Whole groups work the same way — replace user <player> with group <group>.
To turn a feature off, change the switch in config.yml — not permissions:
| Switch | When off |
|---|---|
server.enabled |
Entire plugin disabled (master switch) |
word-system.enabled |
Word learning, review, wrong-answer notebook all refused |
ai-chat.enabled |
All AI conversation refused |
social.enabled |
Square feed and cheer buttons hidden |
duel.enabled |
Duel entry hidden, new invites not accepted |
checkin.enabled |
Check-in refused (records kept; a streak breaks if disabled during it) |
daily-challenges.enabled |
No daily challenges assigned |
progress-system.enabled |
Leaderboards, achievements, rewards all off |
report.enabled |
/lea report refused |
season.enabled |
Season board, /le season, and season rewards all off |
class-system.enabled |
Class features off |
onboarding.enabled |
Onboarding off |
class-system.enabled and season.enabled default to false out of the box (operations features that must be turned on explicitly); everything else defaults to true.
Run /lea reload after changing them — no restart needed. Turning a feature off does not delete data; progress and achievements are intact when you turn it back on. The exception is checkin.enabled: a streak naturally breaks while it is disabled.
Both /le and /lea support tab completion.
/le's top-level subcommands match by prefix only and ignore module switches — with word-system.enabled=false, typing /le w<TAB> still completes word. Only quiz mode candidates are filtered by switches (a disabled mode does not appear); cancel under /le duel is shown only to admin.
/lea filters by permission: someone with only report cannot see the other subcommand names, and argument completion returns empty in all other cases.