AdvancedClear 插件
概述:
AdvancedClear 是一款 Minecraft 插件,旨在帮助服务器管理员通过按可配置的时间间隔自动清除掉落的物品来保持世界整洁。该插件还允许玩家取消即将到来的清理操作,并提供有关清理过程的详细反馈,包括哪些物品被移除以及谁取消了清理。
功能:
-
定时清理:
- 按可配置的时间间隔自动清除掉落的物品。
- 在清理发生前向玩家发送警告,允许他们在必要时取消。
-
自定义消息:
- 支持多种语言(英语和俄语)的可自定义消息。
- 使用
tellraw 命令进行游戏内通知,以增强消息格式化和点击事件。
-
玩家交互:
- 玩家可以通过点击特殊消息或使用
/cancelcleanup 命令来取消即将到来的清理。
- 记录取消清理的玩家,并通过占位符提供此信息。
-
日志记录:
- 将所有清理操作和取消操作记录到文件中,以便稍后审查。


- PlaceholderAPI 集成:
- 与 PlaceholderAPI 集成,提供直到下次清理的时间和最后一名取消清理的玩家的占位符。
安装:
- 下载 AdvancedClear 插件。
- 将下载的文件放入服务器的
plugins 目录中。
- 启动或重启服务器以加载插件。
- 在生成的
config.yml 文件中根据需要配置插件。
配置:
config.yml 文件允许服务器管理员设置物品清理的间隔时间,并自定义不同语言的消息。
用法:
- 插件根据配置的间隔自动安排物品清理。
- 玩家在每次清理前会收到警告,可以通过点击提供的消息或使用
/cancelcleanup 命令来取消清理。
- 插件记录所有清理操作和取消操作以供审查。
命令:
/cancelcleanup: 如果玩家拥有必要的权限(advancedclear.cancel),则取消即将到来的物品清理。
占位符:
%advancedclear_time_until_next_cleanup%: 显示距离下次清理剩余的时间。
%advancedclear_last_skipper%: 显示最后一名取消清理的玩家的名称。
支持:
指标:
- 本插件使用 bStats 收集匿名使用统计数据,以帮助改进插件。
示例配置 (config.yml):
# AdvancedClear 配置
interval: 600 # 每次清理之间的时间(秒)
messages:
en:
message: "Item cleanup will happen soon. Click to cancel."
item_list_header: "Items removed during cleanup:"
removed_message: "Items have been cleared. Total removed: "
cancel_message: "Cleanup has been canceled."
ru:
message: "Очистка предметов произойдёт скоро. Нажмите, чтобы отменить."
item_list_header: "Удалённые предметы во время очистки:"
removed_message: "Предметы были очищены. Всего удалено: "
cancel_message: "Очистка была отменена."
AdvancedClear 通过自动化物品清理来帮助保持服务器整洁有序,同时为玩家提供了管理和参与清理过程的能力。
AdvancedClear Plugin
Overview:
AdvancedClear is a Minecraft plugin designed to help server administrators keep their worlds clean by automatically removing dropped items at configurable intervals. The plugin also allows players to cancel upcoming cleanups and provides detailed feedback on the cleanup process, including which items were removed and who canceled the cleanup.
Features:
-
Scheduled Cleanups:
- Automatically clears dropped items at configurable intervals.
- Sends warnings to players before the cleanup occurs, allowing them to cancel if necessary.
-
Custom Messages:
- Customizable messages in multiple languages (English and Russian).
- In-game notifications using
tellraw commands for enhanced message formatting and clickable events.
-
Player Interaction:
- Players can cancel the upcoming cleanup by clicking a special message or using the
/cancelcleanup command.
- Logs the player who canceled the cleanup and provides this information via placeholders.
-
Logging:
- Logs all cleanup actions and cancellations to a file for later review.


- PlaceholderAPI Integration:
- Integrates with PlaceholderAPI to provide placeholders for time until the next cleanup and the last player who canceled a cleanup.
Installation:
- Download the AdvancedClear plugin.
- Place the downloaded file into your server's
plugins directory.
- Start or restart your server to load the plugin.
- Configure the plugin as needed in the generated
config.yml file.
Configuration:
- The
config.yml file allows server administrators to set the interval for item cleanups and customize messages in different languages.
Usage:
- The plugin automatically schedules item cleanups based on the configured interval.
- Players receive warnings before each cleanup and can cancel it by clicking the provided message or using the
/cancelcleanup command.
- The plugin logs all cleanup actions and cancellations for review.
Commands:
/cancelcleanup: Cancels the upcoming item cleanup if the player has the necessary permission (advancedclear.cancel).
Placeholders:
%advancedclear_time_until_next_cleanup%: Displays the time remaining until the next cleanup.
%advancedclear_last_skipper%: Displays the name of the last player who canceled a cleanup.
Support:
- For any issues or suggestions, please visit the plugin's support page or repository.
Metrics:
- This plugin uses bStats to collect anonymous usage statistics to help improve the plugin.
Example Config (config.yml):
# AdvancedClear configuration
interval: 600 # Time in seconds between each cleanup
messages:
en:
message: "Item cleanup will happen soon. Click to cancel."
item_list_header: "Items removed during cleanup:"
removed_message: "Items have been cleared. Total removed: "
cancel_message: "Cleanup has been canceled."
ru:
message: "Очистка предметов произойдёт скоро. Нажмите, чтобы отменить."
item_list_header: "Удалённые предметы во время очистки:"
removed_message: "Предметы были очищены. Всего удалено: "
cancel_message: "Очистка была отменена."
AdvancedClear helps keep your server clean and organized by automating item cleanups while providing players with the ability to manage and interact with the cleanup process.
评论 0
登录后参与评分
还没有评论,来抢沙发吧