Patrikkk / Commander

πŸ”— Meta-command system to create new commands by adding existing commands to each other + a few useful tweaks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commander Github Releases

πŸ”— Meta-command system to create new commands by adding existing commands to each other + a few useful tweaks

Designed as a standalone alternative to CmdAlias.

Installation

Drop the plugin to your ServerPlugins/ folder. After first run with the plugin installed, the configuration file Commander.json will be created.

Configuration

ℹ️ Reloading configuration file: /reload

[
  {
    "Aliases": [
      "sheal" // first alias is the command name
    ],
    "AllowServer": false,
    "HelpSummary": "Heals a bit too good.",
    "HelpText": [
      "Heals a bit too good.",
      "Maybe too much?"
    ],
    "UsagePermission": "superheal",
    "ExpectedParameterCount": 0,
    "Cooldown": 5,
    "Commands": [
      "sudo silent /heal ${player}",
      "sudo silent /bc ${player} got healed by some holy spirit!"
    ]
  }
]

Modifiers

⭐ Command templates may include modifiers before the slash

  • sudo = Ignore user's permissions when running the command
  • silent = Suppress command output to the user
  • stoponerror = Stop command chain when an error message is received
  • stoponinfo = Stop command chain when an info message is received

Variables

✏️ Command templates may include special tokens in the form ${token}.

  • ${n} = nth argument (${@} for all arguments)
  • ${player} = Executor's name
  • ${user} = Executor's user account name
  • ${group} = Executor's user group name
  • ${x}, ${y} = Coordinates of executor
  • ${wx}, ${wy} = World coordinates of executor (coordinates Γ— 16)
  • ${life}, ${lifeMax}, ${mana}, ${manaMax} = Stats of executor

Need more variables? Make an issue!

About

πŸ”— Meta-command system to create new commands by adding existing commands to each other + a few useful tweaks

License:MIT License


Languages

Language:C# 100.0%