#? ClearBlock: 定时清理区域(适用于 Spigot/Paper)
ClearBlock 是一款专为生存、创造或资源服务器设计的必备维护插件,确保依赖固定区域(如建筑地块或挖矿世界)的服务器保持整洁且无卡顿。
它利用 WorldGuard 的强大功能,按照设定时间精准定位并移除特定区块和掉落物,无需频繁手动操作,即可为玩家提供一个洁净的环境。
✨ 特性
WorldGuard 集成:可指定在 WorldGuard 配置中定义的 ProtectedRegion ID。仅扫描并清理该区域内的方块和物品。
异步扫描:扫描数千个方块的繁重任务在后台线程异步运行,防止主线程卡顿,保证游戏流畅性。
可配置的方块清理:指定需要立即清除的方块列表(例如 COBWEB、WATER、LAVA、GRAVEL)。
掉落物移除:启用配置选项 (clear-items-enabled: true) 以自动移除目标区域内所有的 org.bukkit.entity.Item 实体。
定时警告:在清理事件开始前 30 秒,玩家会收到可配置的同步聊天警告,以便他们妥善保存物品并避免困惑。
可配置间隔:设置清理任务的运行间隔,单位为 Minecraft Tick(例如,72000 ticks = 1 小时)。
⚙️ 安装与设置
要求
Spigot/Paper/Bukkit/TacoSpigot (1.18+)
WorldGuard (推荐 v7.0.9 或更高版本)
WorldEdit (推荐 v7.2.14 或更高版本)
配置 (config.yml)
停止服务器。
将 xClearBlock.jar 放入 plugins/ 文件夹。
启动服务器一次以生成默认的 config.yml,然后再次停止服务器。
编辑配置文件:
# 要清除的材料(方块)列表。请使用全大写名称。
blocks-to-clear:
- COBWEB
- LAVA
- WATER
# 应被扫描和清除的 WorldGuard 区域 ID。
# 这必须是你预先定义的区域!
target-region-id: my_clearing_region
# 设置为 true 以清除区域内所有掉落的物品 (org.bukkit.entity.Item)。
clear-items-enabled: true
# 清理任务运行的频率,单位为 Minecraft Ticks。
# 72000 Ticks = 1 小时
clear-interval-ticks: 1200
启动服务器。插件将在控制台中宣布成功加载。
? 由 Xaso Studios 呈现!
本项目由 Phyntra Host 鼎力支持。
如果您正在寻找极速、无卡顿的主机来运行大型 Spigot、Paper 或带有复杂插件(如 ClearBlock)的自定义服务器,请查看他们的托管方案:
? [Phyntra Host]
[可选:如果 Modrinth 允许,在此处添加主机品牌的 Logo/横幅图片。]
#? ClearBlock: Scheduled Region Clearing for Spigot/Paper
ClearBlock is an essential maintenance plugin designed for survival, creative, or resource servers that rely on fixed areas (like build plots or mining worlds) staying clean and lag-free.
It utilizes the power of WorldGuard to precisely target and remove specific blocks and dropped items on a set schedule, ensuring a pristine environment for your players without constant manual intervention.
✨ Features
WorldGuard Integration: Target a specific ProtectedRegion ID defined in your WorldGuard setup. Only blocks and items inside this region are scanned and cleared.
Asynchronous Scanning: The heavy task of scanning thousands of blocks runs asynchronously (on a separate thread) to prevent server main thread lag, maintaining smooth gameplay.
Configurable Block Clearing: Specify a list of blocks (e.g., COBWEB, WATER, LAVA, GRAVEL) that will be instantly cleared.
Dropped Item Removal: Toggle a configuration option (clear-items-enabled: true) to automatically remove all dropped org.bukkit.entity.Item entities within the target region.
Scheduled Warnings: Players receive configurable, synchronized chat warnings 30 seconds before the clear event starts, giving them time to secure their items and avoid confusion.
Configurable Interval: Set the clear interval in Minecraft Ticks (e.g., 72000 ticks = 1 hour).
⚙️ Installation & Setup
Requirements
Spigot/Paper/BukkitTacoSpigot (1.18+)
WorldGuard (v7.0.9 or newer recommended)
WorldEdit (v7.2.14 or newer recommended)
Configuration (config.yml)
Stop your server.
Place the xClearBlock.jar in your plugins/ folder.
Start the server once to generate the default config.yml, then stop it again.
Edit the configuration:
# The list of materials (blocks) to clear. Use ALL CAPS names.
blocks-to-clear:
- COBWEB
- LAVA
- WATER
# The ID of the WorldGuard region that should be scanned and cleared.
# THIS MUST BE A REGION YOU HAVE PRE-DEFINED!
target-region-id: my_clearing_region
# Set to true to clear all dropped items (org.bukkit.entity.Item) within the region.
clear-items-enabled: true
# How often the clearing task should run, in Minecraft Ticks.
# 72000 Ticks = 1 hour
clear-interval-ticks: 1200
Start your server. The plugin will announce its successful enablement in the console.
? Brought to you by Xaso Studios!
This project is proudly supported by Phyntra Host.
If you're looking for incredibly fast, lag-free hosting to run your large Spigot, Paper, or custom server with complex plugins like ClearBlock, check out their plans:
? [Phyntra Host]
[Optional: Add a logo/banner image for the host here if Modrinth allows.]
评论 0
登录后参与评分
还没有评论,来抢沙发吧