⚠️重要提示:插件已停止更新
Cobwebs-Cleaner 插件
Cobwebs-Cleaner 是一款专为 BoxPvP 服务器打造的实用工具插件,旨在管理竞技场内的杂物并确保持流畅的游戏体验。在激烈的 BoxPvP 战斗中,蛛网(cobweb)的大量堆积会迅速破坏地图环境并影响服务器性能。该插件提供两种动态清理模式以满足服务器需求,并配有直观的图形用户界面(GUI),便于管理员轻松操作。它会自动扫描并清除遗留的蛛网。
功能特性
- 自动化清理循环: 插件的核心是一个计划任务,会根据可自定义的时间间隔自动扫描并移除蛛网
(Material.COBWEB)。
- 双清理模式(指南针切换):
- 半径模式 (
use-radius: true): 插件会在所有当前在线玩家周围的可配置半径(例如 20 格)内进行检查。这种方式效率极高且能最小化卡顿,因为它仅检查玩家正在活跃游玩的区块。
- 全量清理模式 (
use-radius: false): 默认设置。插件会扫描已启用世界中所有已加载的区块。这能确保彻底清理,但需要消耗更多的服务器资源。
- 按世界管理: 你可以精确指定清理器在哪些 BoxPvP 竞技场或世界中运行。通过游戏内的 GUI,可以直接开启或关闭特定世界,并与配置文件即时同步。
- 交互式管理员 GUI (
/cc): 一个坚固且具有防偷窃保护的物品栏菜单,允许管理员执行以下操作:
- 调整计时器间隔(增加/减少秒数)。
- 在半径模式和全量清理模式之间切换。
- 调整半径距离。
- 通过专用子菜单管理已启用的世界。

- 实时配置同步: 在 GUI 中进行的更改会立即更新
config.yml 文件并重启内部计时器,无需重启服务器。
- 放置保护: 玩家必须拥有
cobwebscleaner.build 权限才能放置新的蛛网。如果没有该权限,放置事件将被取消,从而防止玩家弄乱地图。
- PlaceholderAPI 集成: 暴露
%cobwebscleaner_timer% 占位符,允许你在记分板或全息图板上显示距离下次清理剩余的确切时间。
- 游戏内重载命令: 如果直接编辑了 config.yml 文件,请使用
/cc reload 手动刷新插件。
命令与权限
- 命令:
/cobwebscleaner (别名: /cc, /cobwebs)
- 描述: 打开主配置 GUI。
- 权限:
cobwebscleaner.admin (默认: OP)
- 命令:
/cc reload
- 描述: 从
config.yml 文件重新加载配置。
- 权限:
cobwebscleaner.admin
- 行为: 放置蛛网
配置文件 (config.yml)
插件会自动生成配置文件。
# 清理器扫描蛛网的频率(以秒为单位)
interval-seconds: 60
# 检查蛛网的玩家周围半径(以格为单位)。仅在 use-radius 为 true 时使用。
clean-radius: 20
# 模式切换:
# true = 仅清理在线玩家周围的区域(半径模式)
# false = 清理已启用世界中所有已加载的区块
use-radius: false
# 蛛网清理器生效的世界列表
enabled-worlds:
- world
预览

⚠️Important: Plugin No Longer
Cobwebs-Cleaner Plugin
Cobwebs-Cleaner is an essential utility plugin purpose-built for BoxPvP servers to manage arena clutter and ensure smooth gameplay. In intense BoxPvP combat, cobweb spam can quickly ruin the map and impact server performance. This plugin automatically sweeps and removes left-behind cobwebs with two dynamic cleaning modes to suit your server's needs, complete with an intuitive, in-game Graphical User Interface (GUI) for easy administration.
Features
- Automated Cleaning Loop: The core of the plugin runs a scheduled task that automatically sweeps for and removes cobwebs
(Material.COBWEB) based on a customizable interval.
- Dual Cleaning Modes (The Compass Toggle):
- Radius Mode (
use-radius: true): The plugin scans a configurable radius (e.g., 20 blocks) around all currently online players. This is highly efficient and minimizes lag, as it only checks chunks where players are actively playing.
- Clean All Mode (
use-radius: false): The default setting. The plugin scans every loaded chunk within the enabled worlds. This ensures thorough cleaning but requires more server resources.
- Per-World Management: You can specify exactly which BoxPvP arenas or worlds the cleaner operates in. Worlds can be toggled on or off directly through the in-game GUI, syncing instantly with the configuration file.
- Interactive Admin GUI (
/cc): A robust, anti-theft protected inventory menu that allows administrators to:
- Adjust the timer interval (add/remove seconds).
- Toggle between Radius and Clean All modes.
- Adjust the radius distance.
- Manage enabled worlds via a dedicated sub-menu.

- Live Configuration Sync: Changes made in the GUI instantly update the
config.yml file and restart the internal timer, requiring no server reboots.
- Placement Protection: Players must have the
cobwebscleaner.build permission to place new cobwebs. Without it, the placement event is cancelled, preventing players from cluttering the map.
- PlaceholderAPI Integration: Exposes the
%cobwebscleaner_timer% placeholder, allowing you to display the exact time remaining until the next sweep on scoreboards or holograms.
- In-Game Reload Command: Use
/cc reload to manually refresh the plugin if you edit the config.yml file directly.
Commands & Permissions
- Command:
/cobwebscleaner (Aliases: /cc, /cobwebs)
- Description: Opens the main configuration GUI.
- Permission:
cobwebscleaner.admin (Default: OP)
- Command:
/cc reload
- Description: Reloads the configuration from the
config.yml file.
- Permission:
cobwebscleaner.admin
- Action: Placing a Cobweb
Configuration (config.yml)
The plugin generates a configuration file automatically.
# How often the cleaner sweeps for cobwebs (in seconds)
interval-seconds: 60
# The radius around the player to check for cobwebs (in blocks). Only used if use-radius is true.
clean-radius: 20
# Mode Toggle:
# true = Only clean around online players (Radius Mode)
# false = Clean all loaded chunks in enabled worlds
use-radius: false
# List of worlds where the cobweb cleaner is active
enabled-worlds:
- world
Preview

评论 0
登录后参与评分
还没有评论,来抢沙发吧