This is a basic skript in which using the command /commandspy (help / on / off / reload) you will receive a notification every time a player sends a command in chat.
Code:
options:
# General options.
Version: v1.0.2-RELEASE
Permission: cspy.use
PermissionCanBypass: false
Update-Alerts: true
Use-AntiSpam: true
AntiSpam-Cooldown: 1 second
Use-AntiSpam-Kick: true
SpamToKick: 3
# Messages.
Prefix: &6&lCSPY &8&l» &f
NoPermission: &7This server uses &6CommandSpy &7by &6frafol&7! Check it on &6SpigotMC&7!
SpyDisabled: &7You have &cdisabled &7the Spy!
SpyEnabled: &7You &aenabled &7the Spy!
Usage: &7You can use &e/commandspy &7(on/off/reload/help)
Spy: &e%player% &7executed the command: &e/%complete command%&7.
AntiSpam-Message: &cYou can't spam commands in the chat. If you continue, you will be sanctioned!
AntiSpam-Kick-Message: &8&m----------------------%newline%&f%newline%&6&lANTISPAM%newline%&c%newline%&c&l&nSPAM IS NOT ADMITTED!%newline%&7%newline%&8&m----------------------