ChatSentry Wiki
  • ChatSentry
  • Features
  • Compatibility details
  • Module list & info
  • FAQ
  • Perms & Cmds
    • Bypass & misc. permissions
    • Commands (and their permissions)
      • In-game view
      • In depth command usages
  • guides
  • Plugin installation & configuring guide
  • Network bridge setup guide
  • In depth Word & Phrase Filter block list setup
  • In depth Chat Executor guide & entry examples
  • Config guides
    • Main/core config guide
    • Module config guides
      • Admin Notifier
      • Anti Chat Flood
      • Anti Command Prefix
      • Anti Join Flood
      • Anti Parrot
      • Anti Statue Spambot
      • Auto Grammar
      • Auto Punisher
      • Cap Limiter
      • Chat Cooldown
      • Chat Executor
      • Command Spy
      • Link & Ad Blocker
      • Spam Blocker
      • Unicode Remover
      • Word & Phrase Filter
    • Lang file guide
  • contact
  • Get support, talk with other cs users, make suggestions, etc.
  • Plugin Files
    • Default plugin configs & other files
      • /ChatSentry
        • config.yml
        • lang.yml
        • storage.yml
        • changelog.txt
      • /ChatSentry/Modules
        • admin-notifier.yml
        • anti-chat-flood.yml
        • anti-command-prefix.yml
        • anti-join-flood.yml
        • anti-parrot.yml
        • anti-statue-spambot.yml
        • auto-grammar.yml
        • auto-punisher.yml
        • cap-limiter.yml
        • chat-cooldown.yml
        • chat-executor.yml
        • command-spy.yml
        • link-and-ad-blocker.yml
        • spam-blocker.yml
        • unicode-remover.yml
        • word-and-phrase-filter.yml
  • Misc info and resources
    • Preset word lists for the word and phrase filter
    • ChatSentry's SpigotMC Page
  • API
    • About
    • Accessing the API
    • API Documentation
      • Events
      • Methods
  • Development
    • v5 Changelog
    • Legacy Changelogs
      • v4 Changelog
      • v3 Changelog
      • v2 Changelog
      • v1 Changelog
  • legal
    • Terms of Use Agreement
Powered by GitBook
On this page
  • About this module
  • Config guide
  • use-command-whitelist
  • commandspy-command-blacklist
  • commandspy-command-whitelist

Was this helpful?

  1. Config guides
  2. Module config guides

Command Spy

PreviousChat ExecutorNextLink & Ad Blocker

Last updated 4 years ago

Was this helpful?

About this module

The Command Spy module shows players real-time commands to admins. Commands can optionally be whitelisted or blacklisted. Does not require "process-commands" in the main config to be enabled to function.

To receive notifications, op or the permission: "chatsentry.commandspy" is required.

Players with op or the permissions: "chatsentry.commandspy" & "chatsentry.commandspy.toggle" can toggle their commandspy notifications off and on.

To make a player or group exempt from having their commands sent to players with command spy permission, add "chatsentry.commandspy.exempt" to their permissions.

Config guide

You can access the below settings in the command-spy.yml file within the modules folder of the plugin's root folder.

Config excerpts taken from v3.6.0 and may not be completely up-to-date with the latest changes. To see the most up-to-date file, see below:

use-command-whitelist

If false, all commands will be "spied" on except for ones starting with the blacklisted ones. If true, only commands that start with any of the whitelisted ones will be "spied" on.

If use-command-whitelist is enabled, only commands that start with any of the words on the below list will be sent to players with commandspy permission.

use-command-whitelist: false

commandspy-command-blacklist

Commands that start with any of the words on this list won't be sent to players with commandspy permission.

Set to "commandspy-command-blacklist: []" to have an empty list.

Make sure to put a "/" before any commands on the list below or the list will not work properly.

Only add base commands; don't add any command arguments. (spaces)

commandspy-command-blacklist:
  - "/blacklistedcommand"

commandspy-command-whitelist

If use-command-whitelist is enabled, only commands that start with any of the words on the below list will be sent to players with commandspy permission.

Set to "commandspy-command-whitelist: []" to have an empty list.

Make sure to put a "/" before any commands on the list below or the list will not work properly.

Only add include base commands; don't add any command arguments. (spaces)

commandspy-command-whitelist:
  - "/tell"
  - "/t"
  - "/msg"
  - "/w"
  - "/r"
  - "/whisper"
  - "/w"
  - "/pm"
command-spy.yml