Commands and Permissions
The main command of EmakiCoreLib is /emakicorelib, with /corelib and /emakicore as aliases. These commands are mainly for server administrators: reloading CoreLib, running config prechecks, inspecting JavaScript extensions, listing or executing registered Actions, and debugging loop Action tasks.
Commands
| Command | Permission | Description |
|---|---|---|
/corelib reload | emakicorelib.reload or emakicorelib.admin | Reload CoreLib configuration, the Action system, and JavaScript runtime. If precheck fails, the previous config remains active. |
/corelib check [module|report|--fix] | emakicorelib.admin | Run config prechecks, check one module, or show the latest report. --fix is currently read-only and does not apply automatic fixes. |
/corelib script list | emakicorelib.admin | List global JavaScript scripts and current script extension registrations. |
/corelib script inspect <script> | emakicorelib.admin | Show which extension entries were registered by one JavaScript file. |
/corelib script reload | emakicorelib.admin | Reload Action / JavaScript related systems. |
/corelib action list | emakicorelib.admin | List registered Actions with id, category, source, owner, execution mode, and parameter names. |
/corelib action run <actionId> key=value ... | emakicorelib.admin | Execute one currently registered Action. /corelib action <actionId> key=value ... is also accepted as shorthand. |
/corelib debug all [on|off|status] | emakicorelib.admin | Toggle the global Debug switch at runtime. Without an argument it behaves as status. A reload restores the configured debug.global_all value. |
/corelib debug loops [list|player|key|cancel|cancel-player] | emakicorelib.admin | Inspect active loop Action tasks and cancel them by key or player. |
/corelib help | none | Show subcommand help. Also shown when no argument or an unknown subcommand is given. |
The action subcommand may also be written as actions; both are equivalent.
Permissions
| Permission | Default | Description |
|---|---|---|
emakicorelib.reload | op | Allows CoreLib reload. |
emakicorelib.admin | op | Administrative fallback permission; includes emakicorelib.reload. |
Common operations
Reload CoreLib
/corelib reloadUse this after changing CoreLib configuration, language files, Actions, or scripts. Reload runs a config precheck first; if the precheck fails, the currently active configuration is kept.
Run config prechecks
/corelib check
/corelib check report
/corelib check corelibcheck validates configuration references, Action templates, item sources, and CoreLib-related settings. report shows the latest precheck report. Passing a module id checks only that module.
Inspect JavaScript extensions
/corelib script list
/corelib script inspect examples/hello.js
/corelib script reloadUse these commands to inspect global scripts, script extension registrations, and reload status. See JavaScript for the full scripting system.
List and execute registered Actions
/corelib action list
/corelib action run sendmessage text="hello"action list shows what is currently registered in the Action registry. action run parses <actionId> key=value ... as a normal Action line, so parameters, quoting, @if, @chance, and @delay follow the same rules as Action lines in configuration files. Console execution has no player context, so Actions that require a player fail through normal Action validation.
Debug loop Actions
/corelib debug loops list
/corelib debug loops player Steve
/corelib debug loops key some-loop-key
/corelib debug loops cancel some-loop-key
/corelib debug loops cancel-player SteveThese commands are for troubleshooting or cleaning up loop Actions. Do not keep large-scale loop task debugging enabled on production servers longer than necessary.
Toggle global Debug
/corelib debug all status
/corelib debug all on
/corelib debug all offThis has the same effect as temporarily overriding debug.global_all in config.yml and affects every Emaki module that uses CoreLib's DebugLogger. The toggle is not written back to the config file; /corelib reload restores the configured value.