TakeawaySnitches 允许团队监控其领地、检测入侵者,并构建庞大的周界警报网络。该插件基于高性能异步引擎开发,能够处理数千条日志记录,且零服务器卡顿。
依赖警告
本插件是 TakeawayGuard 生态系统的一个模块。
需要:TakeawayGuard
若未安装核心插件,本插件将无法加载。
TakeawaySnitches 新增内容:
两种哨兵类型
- 唱片机(警报哨兵):拥有巨大的 23x23x23 检测半径。扫描敌人并记录进入、离开、方块破坏、方块放置以及击杀事件。当检测到入侵者时,会立即向你的团队和 Discord 服务器发送警报。适用于主动防御。
- 音符盒(日志哨兵):紧凑的 11x11x11 检测半径。静默记录进出日志,不会通知入侵者或刷屏聊天。非常适合秘密基地或内部监控。
多边形周界区域
- 在彼此附近放置多个唱片机以形成连接的防御网络。
- 由自定义的 2D 多边形射线投射算法驱动,插件会在你的哨兵之间绘制一个不可见的“区域”。任何发生在该自定义形状内的事件都会被追踪!
- 只需查看日志,即可通过粒子效果可视化你的防御边界和凸包循环。
Discord Webhook 集成
- 将团队的哨兵直接连接到你的 Discord 服务器。
- 一旦入侵者突破唱片机的周界,便会向你的频道发送轻量级、美观嵌入的 JSON 警报。
零卡顿 GUI 与智能日志
- 即时检查日志。玩家皮肤在后台异步获取,确保服务器永远不会卡死。
- 日志采用简洁的相对时间戳(如“刚刚”、“5 小时前”),并在 30 天后自动清除,以保持数据库精简。
MySQL 后端
- 依托 TakeawayGuard 数据库内核,实现企业级的数据稳定性。
使用方法
- 创建团队:你必须是 TakeawayGuard 团队的一员(/tgg create <name>)。
- 启用加固:开启 TakeawayGuard 的自动加固模式(/tgf)。
- 放置方块:放置唱片机(警报型)或音符盒(静默型)。插件将验证加固状态,并立即自动创建一个锁定到该特定团队的哨兵!(如果你忘记加固它,你会收到警告,它将不会记录)。
- 链接 Discord(可选):运行 /snitch webhook <url> 将基地警报直接路由到你的 Discord 服务器。
- 检查日志与可视化:站在哨兵半径或多边形区域内的任意位置,输入 /snitch 打开日志 GUI 并查看边界粒子。
命令
- /snitch - 打开日志 GUI 并显示边界粒子(必须站在哨兵的半径/区域内)。
- /snitch webhook <url> - 将团队的唱片机警报链接到 Discord 频道。
- /snitch list - 列出团队拥有的所有哨兵(即将推出)。
版权所有 © 2026 Docc。禁止重新分发或修改。
TakeawaySnitches allows groups to monitor their land, detect intruders, and create vast perimeter alert networks. Built on a high-performance asynchronous engine, this plugin handles thousands of logs with zero server lag.
Dependency Warning
This plugin is a module of the TakeawayGuard Ecosystem.
Requires: TakeawayGuard
It will NOT load without the core plugin installed.
TakeawaySnitches Adds:
Two Snitch Types
- Jukebox (Alert Snitch): Massive 23x23x23 detection radius. Scans for enemies and logs entries, exits, block breaks, block places, and kills. Sends instant alerts to your group and Discord server when an intruder is detected. Ideal for active defense.
- Note Block (Logging Snitch): Compact 11x11x11 detection radius. Silently records entry and exit logs without notifying the intruder or spamming chat. Perfect for secret bases or internal monitoring.
Polygon Perimeter Fields
- Place multiple Jukeboxes near each other to form a connected defensive network.
- Powered by a custom 2D Polygon Ray-Casting algorithm, the plugin draws an invisible "field" connecting your snitches. Anything that happens inside that custom shape is tracked!
- Visualize your defensive boundaries and Convex Hull loops with particles just by checking your logs.
Discord Webhook Integration
- Connect your group's snitches directly to your Discord server.
- Fires lightweight, beautifully embedded JSON alerts to your channel the second an intruder breaches your Jukebox perimeter.
Zero-Lag GUI & Smart Logs
- Inspect logs instantly. Player skins are fetched asynchronously in the background, ensuring your server never freezes.
- Logs feature clean, relative timestamps ("Just now", "5 hours ago") and automatically purge after 30 days to keep your database lean.
MySQL Backend
- Piggybacks off the TakeawayGuard database kernel for enterprise-grade data stability.
How to Use
- Create a Group: You must be in a TakeawayGuard group (/tgg create <name>).
- Enable Reinforcement: Turn on TakeawayGuard's auto-reinforce mode (/tgf).
- Place the Block: Place a Jukebox (Alert) or Note Block (Silent). The plugin will verify the reinforcement and instantly auto-create a snitch locked to that exact group! (If you forget to reinforce it, you will get a warning and it will not record).
- Link Discord (Optional): Run /snitch webhook <url> to route base alerts directly to your Discord server.
- Check Logs & Visualise: Stand anywhere inside your snitch's radius or polygon field and type /snitch to open the log GUI and see your boundary particles.
Commands
- /snitch - Open the log GUI and show boundary particles (Must be standing inside your snitch's radius/field).
- /snitch webhook <url> - Link your group's Jukebox alerts to a Discord channel.
- /snitch list - List all snitches owned by your group (Coming Soon).
Copyright © 2026 Docc. NOT for redistribution or modification.
评论 0
登录后参与评分
还没有评论,来抢沙发吧