hazardteam / autoclearchunk
一个PocketMine-MP插件,可以定期在指定的世界中自动清除区块。
3.0.1
2024-04-16 16:44 UTC
Requires
- latampmdevs/update-notifier: dev-master
- pocketmine/pocketmine-mp: ^5.0
Requires (Dev)
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
This package is auto-updated.
Last update: 2024-09-26 16:25:22 UTC
README
一个PocketMine-MP插件,可以定期在指定的世界中自动清除区块。
特性
- 自动清除配置世界中的区块。
- 可配置清除间隔,以满足服务器的需求。
- 基于命令的区块清除选项,用于手动控制。
- 为不同事件自定义消息,以增强玩家体验。
- 支持黑名单,以排除特定世界中区块的清除。
- 自动更新通知器,以保持插件与最新版本同步。
默认配置
# AutoClearChunk Configuration # Enable Auto Schedule # Determines whether the plugin automatically schedules the task to clear unloaded chunks at the specified interval. # Set to 'true' to enable auto schedule, 'false' to disable. enable-auto-schedule: true # Clear Interval Duration # Determines the time interval at which unloaded chunks are automatically cleared. # The value should be specified as a duration format string. # Examples: 1h (1 hour), 30m (30 minutes), 15s (15 seconds) clear-interval-duration: 5m30s # Message displayed when chunks are cleared using the ClearChunk command # Use %d placeholder for the number of cleared chunks and %s placeholder for the world name. # You can customize the message using color codes. # Default: "Successfully cleared %d chunks in world %s" clearchunk-message: "&aSuccessfully cleared %d chunks in world %s" # Message broadcasted to all players when chunks are cleared using the ClearChunk command # Use %d placeholder for the number of cleared chunks and %s placeholder for the world name. # You can customize the message using color codes. # Default: "&e%d chunks have been cleared in world %s" clearchunk-broadcast-message: "&e%d chunks have been cleared in world %s" # Message displayed when chunks are cleared using the ClearAllChunk command # Use %d placeholder for the number of cleared chunks. # You can customize the message using color codes. # Default: "Successfully cleared %d chunks in all worlds" clearallchunk-message: "&aSuccessfully cleared %d chunks in all worlds" # Message broadcasted to all players when chunks are cleared using the ClearAllChunk command # Use %d placeholder for the number of cleared chunks. # You can customize the message using color codes. # Default: "&e%d chunks have been cleared in all worlds" clearallchunk-broadcast-message: "&e%d chunks have been cleared in all worlds" # Enable or Disable Message broadcast to all players when chunk are cleared broadcast-message: true # List of worlds that are blacklisted and won't be cleared # Add the names of any worlds you want to exclude from the clearing process. # Default: [] blacklisted-worlds: - your_world - another_world
配置
该插件配置文件(config.yml
)允许您自定义AutoClearChunk插件的各个方面。以下是可以配置的选项
enable-auto-schedule
(布尔值):将此选项设置为true
,如果您想启用自动区块清除计划。如果设置为false
,则只能通过命令手动清除区块。clear-interval-duration
(字符串):指定自动清除区块的时间间隔。持续时间应指定为1h30m
的格式,即1小时和30分钟。clearchunk-message
(字符串):自定义使用/clearchunk
命令清除区块时发送给玩家的消息。clearchunk-broadcast-message
(字符串):自定义使用/clearchunk
命令清除区块时广播给所有玩家的消息。clearallchunk-message
(字符串):自定义使用/clearallchunk
命令清除区块时发送给玩家的消息。clearallchunk-broadcast-message
(字符串):自定义使用/clearallchunk
命令清除区块时广播给所有玩家的消息。broadcast-message
(布尔值):将此选项设置为true
,如果您想在区块清除时启用广播消息。blacklisted-worlds
(数组):指定要排除从区块清除的世界列表。将世界名称作为单独的数组项添加。
您可以使用文本编辑器编辑config.yml
文件,以调整插件的行为,自定义消息,并定义应该应用区块清除的世界。
命令
AutoClearChunk插件提供了以下命令用于区块清除
/clearchunk
:清除当前世界中所有的区块。玩家将收到通知消息。- 权限:
autoclearchunk.command.clearchunk
- 权限:
/clearallchunk
:清除所有配置世界中所有的区块。玩家将收到通知消息。- 权限:
autoclearchunk.command.clearallchunk
- 权限:
权限
为了控制对AutoClearChunk插件提供的命令的访问,以下权限可用
autoclearchunk.command.clearchunk
:允许玩家使用/clearchunk
命令。autoclearchunk.command.clearallchunk
:允许玩家使用/clearallchunk
命令。
使用您选择的权限管理插件将此权限授予特定的玩家组或个人。
即将推出的功能
- 目前没有计划。您可以贡献或提出新功能的建议。
附加说明
- 如果您发现错误或想提出建议,请访问此处。
- 我们接受所有贡献!如果您想做出贡献,请在此处发起拉取请求。
- 图标由icons8.com制作