HTCommands
A lightweight command chain plugin for Hytale servers. Save groups of commands as named sets and execute them all at once with a single command. Each command can be configured to run as the player or as console.
Discord : https://discord.gg/y6RemcjSaD
Features
- Save command chains to JSON and run them with
/htrun <name> - Per-command control: run as player or as console using prefixes
{player}placeholder auto-replaced with the executing player's name- Manage command sets in-game or by editing the JSON file directly
- Hot-reload config without restarting the server
Commands
| Command | Description |
|---|---|
/htrun name |
Execute all commands in a saved command set |
/htcmd create name |
Create a new empty command set |
/htcmd add name "command" |
Add a command to a set (wrap in quotes for multi-word) |
/htcmd remove name index |
Remove a command by its index number (1-based) |
/htcmd delete name |
Delete an entire command set |
/htcmd list |
List all saved command sets |
/htcmd info name |
View all commands in a set |
/htcmd reload |
Reload command sets from disk |
Alias: /htcmd can also be used as /htc
Permissions
| Permission | Description |
|---|---|
htcommands.run |
Use /htrun to execute command sets |
htcommands.admin |
Parent permission for all /htcmd subcommands |
htcommands.admin.create |
Create new command sets |
htcommands.admin.add |
Add commands to a set |
htcommands.admin.remove |
Remove commands from a set |
htcommands.admin.delete |
Delete command sets |
htcommands.admin.list |
List all command sets |
htcommands.admin.info |
View commands in a set |
htcommands.admin.reload |
Reload config from disk |
Command Prefixes
Each command in a set can be prefixed to control who it runs as:
| Prefix | Runs As | Description |
|---|---|---|
| (none) | Player | Runs as the player who typed /htrun. Requires the player to have permission for the command. |
player: |
Player | Same as no prefix — explicitly marks a command as player-executed. |
console: |
Console |
Runs with full console privileges. Use for admin commands the player shouldn't need direct permission for. |
| silent: | Both |
silence commands so they do not show in chat |
Placeholders
| Placeholder | Replaced With |
|---|---|
{player} |
Username of the player running /htrun |
Examples
Starter kit (mixed player and console)
/htcmd create starterkit
/htcmd add starterkit "console:give {player} stone 64"
/htcmd add starterkit "console:give {player} wood 64"
/htcmd add starterkit "island home"
Then run: /htrun starterkit
- The
givecommands run as console (player doesn't need give permission) - The
island homecommand runs as the player
Bulk region flag setup
/htcmd add plotsetup "console:rg flag singleplot1 build allow -g Members"
/htcmd add plotsetup "console:rg flag singleplot1 pvp deny"
/htcmd add plotsetup "console:rg flag singleplot1 mob-spawning deny"
undefined
Then run: /htrun plotsetup
Editing the JSON directly
For large command sets, edit plugins/HTCommands/commands.json directly and use /htcmd reload
{
"entries": [
{
"name": "starterkit",
"commands": [
"console:give {player} stone 64",
"console:give {player} wood 64",
"island home"
]
},
{
"name": "plotsetup",
"commands": [
"console:rg flag singleplot1 build allow -g Members",
"console:rg flag singleplot1 pvp deny",
"console:rg flag singleplot1 mob-spawning deny",
"console:rg flag singleplot2 build allow -g Members",
"console:rg flag singleplot2 pvp deny",
"console:rg flag singleplot2 mob-spawning deny"
]
}
]
}
Notes
- Commands in the JSON should not include the leading
/ - When adding commands in-game, wrap multi-word commands in quotes:
/htcmd add name "console:give {player} stone 64" - For large batches (50+ commands), editing the JSON file directly +
/htcmd reloadis recommended - The
{player}placeholder works with bothconsole:andplayer:prefixes

