
A lightweight macro command plugin for Velocity.
LiteMacro is a lightweight Velocity plugin that lets you create custom commands by chaining simple actions.
For example, you can add /hub as a shortcut for /server hub—fewer keystrokes, same result.
A macro command is defined by a list of actions. Actions are executed in order.
commandRun a command as either the player or the console.
cmd (required): The command to execute (without the leading /)run_as (required): Who runs the command (player or console)messageSend a chat message to the command executor.
text (required): The message to senddelayPause execution for a specified duration.
millis (required): Delay time in millisecondstransferTransfer the executing player to another Velocity registered server.
target (required): Target server namemessage (optional): Message to send to the player before transferringplugins/ folder.On first startup, LiteMacro will create a configuration file:
plugins/liteMacro/command.ymlIt also uses language files in:
plugins/liteMacro/lang/Open plugins/liteMacro/command.yml and set:
lang: "en_US"
Make sure the corresponding language file exists (for example plugins/liteMacro/lang/en_US.properties).
Add a macro under macros:. Example: /hub
macros:
hub:
description: "Transfer player to hub."
permission: "litemacro.default.hub"
aliases: [ "lobby", "tohub" ]
actions:
- type: message
options:
text: "Transferring to hub..."
- type: transfer
options:
target: "Hub"
After editing command.yml, reload the plugin:
/litemacro reload
Run the command in-game:
/hub
If everything is configured correctly, the macro will execute actions in order.
Issues and pull requests are welcome.
If you have ideas, bug reports, or improvements, feel free to open an issue or submit a PR.
This project is licensed under the MIT License. See the LICENSE file for details.