Command Types

All the command types you can use to create awesome commands!

Alert
Example
alert:
  type: "alert"
  enabled: true
  name: "alert"
  permission: "leaf.alert"
  # %message% : The alert message.
  message: "&8&l[&f&lAlert&8&l]&r &a%message%"

/[name] [message]

The alert command type sends a message to all players.

Alert Raw
Example
alertraw:
  type: "alertraw"
  enabled: true
  name: "alertraw"
  permission: "leaf.alertraw"

/[name] [JSON]

The alert raw command type sends a JSON message to all players.

Chat
Example
staffchat:
  type: "chat"
  enabled: true
  name: "staffchat"
  aliases: [ "sc" ]
  permission: "leaf.staffchat"
  # Should the messages be logged in console?
  log: true
  # %message% : The players message.
  format: "{server_formatted}&r {rank_colour}<player>&r &7: {vanish_colour}%message%"

/[name] [message]

The chat command is used to send a message to other players with the same permission.

Find
Example
find:
  type: "find"
  enabled: true
  name: "find"
  permission: "leaf.find"
  not_found: "{error_colour}Player could not be found."
  # Placeholders will parse in terms of the player.
  found: "{message} Player was found on {server_formatted}"
  # Let vanishable players find vanishable players?
  vanishable_players: false

/[name] [player]

The find command is used to get information about an online player.

Info
Example
info:
  type: "info"
  enabled: true
  name: "leaf"
  message:
    - "&8&m&l-------&r &a&lLeaf &8&m&l-------"
    - "&7"
    - "&7Velocity Proxy Plugin"
    - "&7Version &f<version>"
    - "&7Author &fSmudge"
    - "&7"
    - "&8&m&l--------------------"
Example
hello:
  type: "info"
  enabled: true
  name: "hello"
  message: "world"

/[name]

The info command is used to display information.

List
Example
stafflist:
  type: "list"
  enable: true
  name: "stafflist"
  permission: "leaf.stafflist"
  header: "&8&m&l-----&r &a&lStaff List &8&m&l-----"
  footer: "&8&m&l--------------------"
  list:
    admin:
      permission: "leaf.rank.admin"
      header: '&7[&f%amount%&7] &c&lAdmins'
      # Placeholders will parse in terms of the player.
      section: '&7- &f<player> {server_formatted}'

/[name]

The list command is used to display a list of online players.

Reload

/[name]

The reload command is used to reload the leaf plugin. Reloading the plugin reloads the configs and re-adds the commands with the new configuration. If you remove a command and reload the plugin, it will be removed from the server.

Report

/[name] [message]

The report command is used to send a message to a group of players.

Send

/[name] [from] [to]

The send command is used to warp a group of players to a server.

Servers

/[name]

The servers command is used to display the list of online servers.

Mesage

/[name] [player] [message]

The message command is used to send a message to a specific online player.

Reply

/[name] [message]

The reply command is used to reply to a previous message.

Ignore

/[name] [player]

The ignore command is used to ignore other players. This stops them from sending a message to you.

Unignore

/[name] [player]

The unignore command is used to remove a player from your ignore list.

Ignore List

/[name]

The ignore list command is used to display your ignore list.

Toggle Messages

/[name]

Used to toggle messages. When this is sent to false you can't send or receive messages.

Toggle Spy

/[name]

Used to toggle spy. When set to true you will be able to see other players' messages.

History

/[name] [player]

The history command is used to get a player's history from the database. The dataase.yml must be enabled.

Message History

/[name] [query]

The message history command is used to get message data from the database.

Query Types p: Is used to include a player or players. t: Is used to specify a time period. i: is used to only show message that include the strings. e: is used to remove messages that include the strings.

Inventory

/[name]

The inventory command is used to display an inventory to the player. For more information on inventories click here.

Teleport

/[name] [player]

The teleport command is used to teleport to a server a player is connected to.

Join

/[name]

The join command is used to connect to a server.

Friends

For more information on friends click here.

Last updated