command

Used to execute single or multiple commands.

Example
command:
  # The 'command' command type is chainable,
  # so be careful it doesn't loop forever!
  type: "command"
  enabled: false
  name: "findoverride"
  permission: "leaf.find"
  # Suggestions will be seen when tab completing.
  # Suggestions can either be a list of strings or a single string.
  #
  # Placeholders include:
  # %players%: The players the player can see online, excluding vanished.
  # %all_players%: All players online, including vanished.
  # %database_players%: All players in the database.
  suggestions:
    first_suggestion: "%database_players%"
    these_keys_can_be_named_anything:
      - "No more arguments"
      - "Sorry"
  # Used to check if an argument that is meant to be a
  # players name has a certain permission.
  check_argument_permissions:
    1: "permission.permission"
  not_found: "The player could not be found."
  no_permission: "The player you have stated does not have the required permissions."
  # The amount of required arguments.
  required_arguments: 1
  incorrect_arguments: "You didnt specify the correct amount of arguments."
  # Only proxy commands will work.
  # Defaults to run as the player.
  # You can use -c to run the command in the console.
  # You can use -o to run the command as operator.
  # You can use the placeholders:
  # %argument_<number>% Returns the value of the argument.
  # If the command is executed by a user, the user placeholders will also work.
  commands:
    - "find %argument_1%"
    - "lobby -o"
  # Discord bot support.
  discord_bot:
    enabled: false
    allowed_channels:
      - "1150803388309712947"
    channel_not_allowed: "You cannot run this command in this channel."
    permissions:
      - ADMINISTRATOR
    no_permission: "You do not have permission to run this command."
    # List of suggestions.
    arguments:
      arg_1: "The descrption."
    # Check the argument's permissions.
    check_argument_permissions:
      arg_1: "permission.permission"
    not_found: "The player could not be found."
    player_no_permission: "The player you have stated does not have the required permissions."
    # Commands to be run in console.
    commands:
      - "find %arg_1%"
      - "lobby"
    message: "```py\n%Console%\n```"

Last updated