SourceFactory
Main PageDiscord
  • SourceFactory
  • Discord
  • Discord Utilities
    • â„šī¸Info
    • âš™ī¸Main Configuration
      • Linking System
      • Custom Bot Status
      • Custom Variables
    • 🧩Modules
      • Report (Calladmin)
      • Server Status
      • Event Notifications
      • RCON
      • Chat Relay
      • Manage Roles and Permissions
      • Connected Players Role
      • ⭐Skin Changer
      • ⭐Automatic Store 🛒
      • ⭐Player Stats
      • ⭐Server Status Plus
      • ⭐Banlist
      • ⭐Commands Blocker
      • ⭐Leaderboard
    • 📝Admin Commands
    • 🔠Available Variables
    • 📑Tutorials
      • 🤖Setting Up a Discord BOT
      • â„šī¸Custom Embeds Format
      • â„šī¸Buttons Settings
  • Deathmatch
    • â„šī¸Info
    • âš™ī¸Configuration
      • Creating Custom Modes
      • Weapons Restrict
      • Deatmatch Cvars
    • 🧩Modules
      • Limited Zones
    • 📝Commands
    • 🎒Weapons Selection
  • CS2 PLUGINS
    • ❌Reserved Slots
    • đŸ’ŖBombsite Restrict
  • PAID CS2 PLUGINS
    • âŗAuto Team Balance
    • đŸšĢWeapons Manager & Restriction
    • DU Addon: Skin Changer
    • DU Addon: Automatic Store
    • DU Addon: Player Stats
    • DU Addon: Server Status Plus
    • DU Addon: Commands Blocker
    • DU Addon: Leaderboard
Powered by GitBook
On this page
  1. Discord Utilities
  2. Modules

Commands Blocker

PreviousBanlistNextLeaderboard

Last updated 11 months ago

⭐ This plugin is private! Can be purchased on our .

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.

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.

Config Preview
{
  "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
}
🧩
⭐
Discord Marketplace