Skip to content

CustomCommands

DarknessTime-king5442 edited this page Sep 14, 2021 · 2 revisions

CustomCommands support:

  1. Colors ("&<color>", "#HexColor", Rainbow color > "&u", Gradient -> "!#HexColor1TexT!#HexColor2")
  • 1.1 "#HexColor" and Gradient -> "!#HexColor1TexT!#HexColor2" only for 1.16+
  1. Placeholders from PlaceholderAPI

Configuration:

<cmd id>:
  Enabled: true/false
  Name: "<cmd>"
  Aliases:
  - "<cmd aliases>"
  loadAfterPlugins:
  - "<plugin name>"
  Permission: "<permission for use, if no use just delete it>"

# Cooldown time, if CooldownGlobal: false = per player.
  Cooldown: <time>
  CooldownGlobal: true/false # Global cooldown

# %player% - placeholder of executor
  Messages:
  - "<some message>"
  Commands:
  - "<executing another cmd as console>"
  #  PlayerCommands - it's just sudo
  PlayerCommands:  
  - "<list of commands>"

Optional:

  # Cooldown time, if CooldownGlobal: false = per player.
  Cooldown: <time>
  CooldownGlobal: true/false

  Permission: "<permission for use, if no use just delete it>"
  loadAfterPlugins:
  - "<plugin name>"

  PlayerCommands:  
  - "<list of commands>"
  Commands:
  - "<executing another cmd as console>"

Example:

Discord:
  Enabled: false
  Name: "discord"
  Aliases:
  - "disc"
  - "dc"
  Permission: "scr.command.discord"
  Cooldown: 5s
  CooldownGlobal: false
  Messages:
  - "&cDiscord: &eURL"
  
  Commands:
  - "say %player% used discord command"

Clone this wiki locally