Unofficial site, not affiliated with modrinth.com.What is this?
Плагины/EasyAlias
EasyAlias

EasyAlias

Easy alias creation for commands in minecraft

0
0

Aliases

This plugin lets you create aliases for your minecraft commands. Any number of commands can be mapped to one alias, allowing you to easily use multiple commands at once.

Aliases are able to overwrite other registered commands. You can use the overwritten command with namespacing (Generally something like /<name of the plugin>:<command>)

Aliases cannot have any parameters.

Commands

  • /easyalias help: Prints the help message
  • /easyalias reload: Reloads the config and registers/unregisters any commands.
  • /easyalias get <alias>: Prints part of "/easyalias list" for a specific alias
  • /easyalias list: Lists all of the commands available to the player and what they do.

help message

The Config

All commands should be defined under the "commands" section of config.yml.

commands:
  <alias>:
    permission: <required permission>
    run_as_console: <true|false>
    executes:
      - <list of commands to run>
  • alias is the name of the command that executes the alias. The command can be run with <alias>.
  • permission is the permission required to run the alias. If not specified, any player can use the command.
  • run_as_console is a boolean that determines if the command will run as the player or as the console.
  • executes is the list of commands that the alias will run. The commands should not have the forward slash ("/") at the beginning of each line. It can also be a string if only one command needs to be executed

Example Config:

commands:
  example1:
    permission: easyalias.example
    executes:
      - tellraw @p "hello!"
      - tellraw @p "this is an example alias!"
  example2:
    executes:
      - tellraw @p "hello!"
      - tellraw @p "this is another example alias!"
  example3:
    run_as_console: true
    executes:
      - tellraw @p "hello!"
      - tellraw @p "this is another example alias!"
version: "1.0.0"

When running /easyalias reload then /easyalias list, this is what you'll see:

example config

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:GPL-3.0-only
Опубликован:1 неделю назад
Обновлён:1 неделю назад
Главная