promotional bannermobile promotional banner
premium banner
Save and run custom slash command macros.

Description

Custom Slash

Custom Slash is a GUI-first Hytale plugin for creating, managing, and running reusable commands and variables.

It is built for players and server owners who want fast command workflows without memorizing command syntax.

As of 1.0.0, open the full UI with /cs to manage command aliases, variables, preview refresh, and built-ins.

GUI-First Tutorial

1) Open the interface

/cs

Top tabs:

  • Commands: create/update/delete runnable command aliases
  • Variables: create/update/delete reusable values (@name)
  • Built-ins: methods, runtime tokens, and keywords (delay, repeat)

2) Create variables first (recommended)

Variables let you reuse values across many commands.

  1. Open Variables.
  2. Click New Variable.
  3. Set:
    • Name: homePos
    • Value: 5103 169 4982 (or %getPlayerCurrPos() if you want to capture your current location)
  4. Click Create Variable.

Use it later as @homePos.

3) Create a command that uses variables

  1. Open Commands.
  2. Click New Command.
  3. Set:
    • Name: home
    • Command: tp %me @homePos
  4. Click Refresh Preview to resolve the current draft.
  5. Click Create Command.

4) Manage and edit entries

  • Select any command/variable in the left list to edit it.
  • Update from the action buttons.
  • Delete with confirmation for safer destructive actions.
  • Use Search to filter large lists quickly.

5) Built-ins you can use in commands

Runtime tokens:

  • %me -> current player name
  • %pos -> current player coordinates
  • %world -> current world name
  • %time -> current world tick/time

Capture methods:

  • %getPlayerCurrPos()
  • %getPlayerName()
  • %getWorldName()

Keywords:

  • delay <ms> (50-10000)
  • repeat <count> <command> (1-10)

6) Run saved commands

After saving home, run:

/cs home

For one-off command execution:

/cs run "tp %me @homePos"

Safety and Behavior

  • Destructive actions require explicit confirmation in CLI flows.
  • /cs is open to all players.
  • Underlying command execution still follows native Hytale permission checks.
  • Undefined variables, recursive variables, and malformed chains fail with clear errors.

Command Line Equivalents

Macro commands

/cs addcommand --name=home --command="tp self 5103 169 4982"
/cs ac home "tp self 5103 169 4982"
/cs updatecommand --name=home --command="tp self 0 0 0"
/cs uc home "tp self 0 0 0"
/cs rename oldname newname
/cs info home
/cs dryrun home
/cs run tp %me @home
/cs run "say start; delay 500; repeat 2 say ready"
/cs listcommands
/cs listc
/cs home

Variable commands

/cs setvar --name=warp --value="5103 169 4982"
/cs upvar --name=warp --value="5104 169 4983"
/cs delvar warp
/cs listvars
/cs listv

Automation examples

/cs run "cs tp1; delay 500; cs tp2; delay 500"
/cs run "repeat 3 say ready"
/cs run "repeat 2 cs tploop"

Safety and utility commands

/cs listall
/cs help
/csy
/cs cancel

Compatibility

  • Designed for modern Hytale server plugin workflows.
  • Per-player data is persisted to JSON with backup-aware loading and save behavior.