Previous: Configuration FileใยทใNext: Item Source References
๐น๏ธ Commands & Permissions โ
QCL is built on the Cloud command framework. The command root is /qcl, with alias /qinhcorelib. This page provides the complete command tree, usage examples, expected output, the permission node table, and recommended permission group assignments.
๐ณ Command Tree Overview โ
| Command | Alias | Permission | Function |
|---|---|---|---|
/qcl | โ | None | Show help |
/qcl status | /qcl probe | qcl.status | Ecosystem status summary |
/qcl status detail | /qcl status full | qcl.status | Detailed status (per-module / per-bridge / script extension lines) |
/qcl reload | /qcl rl | qcl.admin | Reload config + economy + scripts + external item modules + GUI |
/qcl gui <id> | โ | qcl.gui | Open a custom GUI (player only) |
/qcl attr | /qcl attribute | qcl.admin | Attribute system debug overview |
/qcl attr list | โ | qcl.admin | List all registered attributes (grouped by category) |
/qcl attr show [player] | โ | qcl.admin | View a player's attribute totals (summed across sources) |
/qcl attr debug | โ | qcl.admin | Toggle hit-damage tracing (player only) |
/qcl attr book | โ | None | Open the attribute panel book (player only) |
/qcl mobattr <key> <value> | โ | qcl.admin | Set an attribute on the mob you're looking at (for testing, player only) |
/qinhcorelibis the full alias of/qcl; all commands below can be used with the/qinhcorelibprefix instead.
๐ /qcl โ Help โ
Typing /qcl directly shows the help. No permission required. The help output has a fixed format: separator line + "Qinhuai Core Library" + three lines describing status / reload / gui.
โโโโโโโโโโโโโโโโโโโโโโโโ
Qinhuai Core Library
/qcl status - View ecosystem & bridge status
/qcl reload - Reload configuration files
/qcl gui <id> - Open custom GUI
/qcl attr - Attribute system debug (list/show)
โโโโโโโโโโโโโโโโโโโโโโโโ๐ /qcl status โ Status Summary โ
Permission: qcl.statusใAlias: /qcl probe
/qcl statusOutputs a health summary of the entire Qinhuai ecosystem: soft-dependency probes (item source count + list, economy, attribute plugins, integrated plugins), platform status and health code, per-module health codes, health codes for each bridge (script / economy / PAPI / database / PDC), sub-plugin status (QI / QS / QF / QSt), config diagnostic code, API boundary code, item reference diagnostic code, and more.
Detailed Version โ
/qcl status detailAlias: /qcl status full. On top of the summary, it additionally outputs: bridge count, module count, TraceId, per-module (enabled/disabled + available/unavailable + message), per-bridge (enabled/disabled + available/unavailable + source + message), as well as the lines appended by the script global:qcl_status.js:formatStatus.
๐ฉบ For the meaning, normal values, and exception handling of each item, see Diagnostics & Troubleshooting.
๐ /qcl reload โ Reload โ
Permission: qcl.adminใAlias: /qcl rl
/qcl reloadDuring execution it shows "Reloadingโฆ", and on completion shows "Reload complete".
๐ฆ What reload reloads โ
| Reload Item | Description |
|---|---|
| config | Re-reads config.yml |
| Economy | Re-initializes the economy provider |
| Scripts | Reloads JS scripts |
| External item modules | Re-probes / re-integrates external item plugins |
| GUI | Reloads custom GUI definitions |
โ ๏ธ Which changes reload can't handle and require a restart โ
| Change | Is reload enough? |
|---|---|
database.type or MySQL connection parameters | โ Restart required (the connection is established at startup) |
modules module switches | โ Restart recommended (affects module loading) |
debug / economy / script content / GUI / item references | โ reload is sufficient |
See the "Change Effect Method Quick Reference" in Configuration File.
๐ผ๏ธ /qcl gui <id> โ Open GUI โ
Permission: qcl.guiใPlayer only
/qcl gui ไธป่ๅOpens the custom GUI with id ไธป่ๅ (Main Menu). If that id does not exist, it shows:
GUI not found: ไธป่ๅ๐ For GUI definition and development, see GUI Programming API.
๐ก๏ธ /qcl attr โ Attribute System Debug โ
Permission: qcl.admin (the book subcommand needs no permission)ใAlias: /qcl attribute
| Subcommand | Function |
|---|---|
/qcl attr | Overview: configured backend / active backend / GraalJS status / registered attribute count |
/qcl attr list | List all attributes, grouped by category, tagged vanilla / item / storage type and damage type |
/qcl attr show [player] | View a player's attribute totals (omit to view your own; console must specify a player name) |
/qcl attr debug | Toggle "hit damage tracing" โ prints the attribute resolution each time you deal / take damage (player only) |
/qcl attr book | Open the attribute panel book (player only, no permission) |
๐ก๏ธ For how to configure attributes and write custom ones (yml + JS), see Attribute System.
๐ฒ /qcl mobattr โ Set Attributes on a Mob (for testing) โ
Permission: qcl.adminใPlayer only
/qcl mobattr <attr key> <value> # look at a mob (within 12 blocks) and set that attribute on it
/qcl mobattr clear # clear all attributes from that mobThe fastest way to test a custom attribute: e.g. /qcl mobattr defense 100 gives the mob 100 defense, then hit it to see whether mitigation works.
๐ Permission Node Table โ
| Permission Node | Command(s) Controlled | Nature |
|---|---|---|
qcl.status | /qcl status, /qcl status detail | View type (read-only) |
qcl.admin | /qcl reload, /qcl attr (incl. list / show / debug), /qcl mobattr | Admin type (side effects / debug) |
qcl.gui | /qcl gui <id> | Player feature type |
/qcl(help) and/qcl attr bookrequire no permission and are available to everyone.
๐ฅ Recommended Permission Group Assignments โ
๐ก๏ธ Admin Group (admin / op) โ
permissions:
- qcl.status # View ecosystem status
- qcl.admin # Reload configuration
- qcl.gui # Open GUI๐ง Regular Player Group (default) โ
permissions:
- qcl.gui # Only allow opening GUIs (as needed)๐ก
qcl.admin(reload) has side effects, so only grant it to trusted admins.qcl.statusis usually only granted to admins/ops as well; regular players typically only needqcl.gui(or even not that, triggered by your own GUI sub-plugin instead).
๐ Further Reading โ
- โก๏ธ Next: Item Source References โ the unified reference syntax most used by server owners
- โ๏ธ Configuration File โ the boundary between reload and restart
- ๐ฉบ Diagnostics & Troubleshooting โ understand every line of
/qcl status - ๐ Diagnostic CodesใยทใFAQ