# Commands Blocker

{% hint style="danger" %}
⭐ This plugin is private! Can be purchased on our [Discord Marketplace](https://discord.com/invite/Tzmq98gwqF).
{% endhint %}

{% hint style="info" %}
It is used to block certain commands from other CounterStrikeSharp plugins for players who do not have a linked Discord account or a specific Discord role.<br>

> The plugin includes a very simple configuration where you can set a list of blocked commands, specify who can use the commands, and add custom response messages for when a player is unable to use a command.
> {% endhint %}

<details>

<summary>Config Preview</summary>

```json
{
  "Not Linked Message": "{darkred}[!]{default} You must have a linked Discord account to use this command! ({green}/link{default})",
  "Blocked Commands": {
    "ws": {
      "Roles": [], // If you only want the command for Linked Players, do not specify any Roles for this command.
      "NoPermisionText": ""
    },
    "knife": {
      "Roles": [
        "YOUR ROLE ID"
      ],
      "NoPermisionText": "{darkred}[!]{default} You do not have permission to use the knife command."
    },
    "ban": {
      "Roles": [
        "OWNER ROLE ID",
        "ADMIN ROLE ID"
      ],
      "NoPermisionText": "{darkred}[!]{default} To use this command, you must have the {green}ADMIN{default} role on our Discord server."
    }
  },
  "ConfigVersion": 1
}
```

</details>

<div align="center"><figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FwkYP2m1Y8o4OCxmHjT7w%2FCmdsBlocker_Admin.png?alt=media&#x26;token=ddcab255-e565-4f1b-bc94-2bf4368d8448" alt=""><figcaption></figcaption></figure> <figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FL7MM4IyWajdzmcvGh7O1%2FCmdsBlocker_LinkedAcc.png?alt=media&#x26;token=6b15fa14-5eae-45cc-90c5-1f9d07d9a925" alt=""><figcaption></figcaption></figure></div>
