promotional bannermobile promotional banner

Custom Slash

Save and run custom slash command macros.

File Details

custom-slash-0.2.0.jar

  • R
  • Feb 28, 2026
  • 65.88 KB
  • 8
  • Early Access

File Name

custom-slash-0.2.0.jar

Supported Versions

  • Early Access

0.2.0

Added (0.2.0)

  • Persistent per-player variable storage alongside macros in plugin data.
  • Variable lifecycle commands:
    • setvar (create-only),
    • upvar (update-only),
    • delvar (delete-only).
  • Capture methods for /cs addcommand and /cs setvar//cs upvar values:
    • %getPlayerCurrPos(),
    • %getPlayerName(),
    • %getWorldName().
  • Runtime variable resolver for macro execution with built-ins (%me, %world, %time, %pos) and custom vars (@name).
  • Hidden self-test coverage for variable lifecycle and undefined-variable failures.
  • Command utilities:
    • rename,
    • info,
    • dryrun,
    • run (ad-hoc execution with method/variable resolution).
  • Destructive action confirmation command: /csy.
  • Pending-action cancel command: /cs cancel.
  • Internal architecture split into focused services/repositories:
    • command service,
    • variable service,
    • pending-action service,
    • test-session service,
    • data/config repositories.

Changed (0.2.0)

  • Macro execution now resolves variables before dispatching command text.
  • Storage loading now supports both legacy macros-only JSON and the new macros+variables JSON shape.
  • Root command changed from /m to /cs.
  • Command naming standardized:
    • add: addcommand / ac (create-only, no accidental overwrite),
    • update: updatecommand / uc (update-only, must exist),
    • list: listall, listcommands / listc, listvars / listv.
  • Destructive operations (remove, clearall) now stage a pending action and require /csy confirmation within 30 seconds.
  • Method calls now accept both %methodName() and $methodName() syntax.