Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
Command Block Spy
PluginMIT

Command Block Spy

[Open Source] Monitor/Intercept Server Command Block

52
Downloads
0
Followers
9 months ago
Updated
📦
2
Versions
managementtechnologyutilitybukkitpaperspigot
Download Latestvv1.0.0-SNAPSHOT-2View on Modrinth

📖About Command Block Spy

🕵️‍♂️ CommandBlockSpy

简体中文

Java Version
Minecraft Version
Paper Version
License: MIT
Command Block Spy on Modrinth
GitHub - command-block-spy

📌 CommandBlockSpy (CBS) is a plugin designed for creative Minecraft servers with high degrees of freedom (command blocks enabled). It helps server admins manage command block activity by recording execution data and offering command control and security monitoring.

✅ Tested on Minecraft 1.21.4, built on Paper.

✨ Plugin Features

📝 SQLite-Based Execution Logging
Automatically records each command block’s execution count, command content, last execution time, and coordinates into a database.

🔔 Real-Time Monitoring
A toggleable real-time command monitoring system for both console and players.

🚫 Dangerous Command Interception
Supports custom regex-based interception rules, with customizable messages when blocked.

🔁 Repeating Command Block Interception
Optionally intercepts repeating command blocks that are always active (auto=true).

⚠️ Disable Command Block Minecarts
Optionally prevents players from placing command block minecarts.

🧪 Available Commands

Command Description Permission
/cbspy Toggle chat monitoring prompts cbspy.use
/cbspy reload Reload plugin configuration cbspy.reload
/cbspy query loc <x> <y> <z> Query execution history of a specific location cbspy.query
/cbspy query recent <count> Query the most recent <count> execution records cbspy.query

⚙️ Configuration Example

Note: All features are disabled by default. Please enable them as needed.

# CBS插件配置文件
# CBS Plugin Configuration

# 插件语言,支持中文(zh_CN)和英文(en_US)
# Plugin language, supports Chinese (zh_CN) and English (en_US)
language: zh_CN

# 是否启用数据库功能
# Enable database logging
database-logging-enabled: false

# 是否开启后台命令执行日志监控,开启后控制台会打印命令方块执行记录
# Enable backend monitoring (logs to console)
backend-monitor-enabled: false

# 是否拦截循环命令方块保持开启(auto=true)的命令,拦截后会自动设置为红石控制
# Intercept always-on repeating command blocks (auto=true)
intercept-repeating-auto: false

# 是否禁止命令方块矿车,开启后玩家会无法放置命令方块矿车
# Disable command block minecarts
ban-command-minecart: false

# 是否启用基于正则表达式的命令拦截功能,拦截匹配规则的指令并提示原因
# Enable regex-based command interception
regex-intercept-enabled: false

# 正则表达式拦截列表,格式:正则表达式: 拦截提示信息
# Regex interception list
# 支持常见正则表达式语法,例如:
# Format: regex pattern : block message
regex-block-list:
   - pattern: ^say
     message: 禁止使用 say 命令! # The 'say' command is not allowed!

🚀 Quick Installation

  1. Download the plugin:

    • Modrinth Download
    • GitHub Releases
  2. Install to your server:

    • Place the JAR file into your plugins/ folder
    • Restart the server

📦 Build & Install from Source

Clone the project:

git clone https://github.com/GoldenEggs-Workshop/command-block-spy
cd command-block-spy

Build the plugin:

./gradlew build

Copy build/libs/commandblockspy-xxx.jar to your server's plugins/ folder, then restart the server.

🔐 Permission Nodes

Permission Node Description
cbspy.use Toggle chat alerts
cbspy.reload Reload plugin configuration
cbspy.query Use query-related features

💡 TODO Roadmap

  • Full support for command block minecarts (logging/interception/disabling)
  • Custom database configuration
  • Multi-platform notification integration (Feishu / DingTalk / Discord)
  • Visual query interface
  • √ i18n (internationalization) support

📄 License

This project is licensed under the MIT License. You are free to modify and use the plugin. For commercial deployment, please credit the original source.

👥 Team & Contributors

No authors recorded.

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
bukkitpaperspigot
Minecraft Versions
1.211.21.11.21.21.21.31.21.41.21.51.21.61.21.7+1 more

🔗 Links

Modrinth Page