◽Command Types
All the command types you can use to create awesome commands!
Alert
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
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
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
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
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--------------------"hello:
type: "info"
enabled: true
name: "hello"
message: "world"/[name]
The info command is used to display information.
List
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.
Mesage
/[name] [player] [message]
The message command is used to send a message to a specific online player.
Ignore
/[name] [player]
The ignore command is used to ignore other players. This stops them from sending a message to you.
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.
Friends
For more information on friends click here.
Last updated