Skip to content

Commands and Permissions

Commands

Root command: /emakiattribute (aliases /eattribute, /ea)

SubcommandUsagePermissionDescription
help/ea helpemakiattribute.useDisplay help information
reload/ea reloademakiattribute.reloadAsynchronously reload all config files, outputs load statistics on completion
resync/ea resync [player|all]emakiattribute.resyncRe-sync attribute snapshots. No argument syncs yourself, all syncs all online players
preview/ea preview [player] [slot]emakiattribute.debugPreview the attribute snapshot of a specified player's item in a given slot
dump/ea dump [player]emakiattribute.debugExport a player's full combat attribute snapshot and resource state
debug/ea debug [player] [toggle|on|off]emakiattribute.debugToggle combat debug mode; when enabled, outputs detailed damage calculation logs to console
lint/ea lintemakiattribute.reloadCheck all config files for validity and report potential issues

reload Command

reload executes asynchronously and outputs progress messages during the reload process. On completion, it displays the number of loaded attributes, damage types, and profiles.

Permission Nodes

PermissionDefaultDescription
emakiattribute.usetrueUse basic commands (help)
emakiattribute.reloadopReload configuration and run lint checks
emakiattribute.resyncopRe-sync attributes
emakiattribute.debugopUse preview, dump, debug commands
emakiattribute.adminopAdmin permission, includes all above permissions

Permission Inheritance

emakiattribute.admin is a super permission. Players with this permission can execute all commands without needing individual permission nodes.

Preview Slot Names

The preview command supports the following slot names:

SlotAliasesDescription
main_handmainhand, handMain hand
off_handoffhandOff hand
helmetHelmet
chestplatechestChestplate
leggingslegsLeggings
bootsBoots

Usage examples:

/ea preview                    # Preview your own main hand item
/ea preview main_hand          # Preview your own main hand item
/ea preview Steve helmet       # Preview Steve's helmet
/ea preview chestplate         # Preview your own chestplate

Debug Toggle Options

The debug command supports the following operations:

OperationAliasesDescription
toggleToggle debug state (default operation)
onenable, trueEnable debug
offdisable, falseDisable debug

Usage examples:

/ea debug                      # Toggle your own debug state
/ea debug on                   # Enable your own debug
/ea debug Steve off            # Disable Steve's debug
/ea debug Steve                # Toggle Steve's debug state

Debug Mode Performance

Debug mode outputs a complete log for every damage calculation to the console, including attacker/target snapshots, stage calculation values, crit determination, etc. This may produce a large volume of log output in high-frequency combat scenarios. It is recommended to enable it only when troubleshooting issues.

Lint Check Items

The lint command checks the following configuration areas:

Check AreaDescription
ConfigurationWhether default_damage_type points to a valid damage type; whether damage type references in allowed_damage_causes are valid
Attribute DefinitionsFormat and field validity of attribute files
Damage TypesFormat and stage definition validity of damage type files
Default Attribute ConfigFormat validity of profile files
Lore FormatsFormat validity of Lore format files
Attribute PresetsFormat validity of preset files
Attribute Read ConditionsFormat and reference validity of condition files

Released under the GPL-3.0 License