EntityClearer 实体清理器 一个ClearLagg的替代品
作者:JasonHorkles
发布时间:2021年4月1日
原生版本:未知
测试支持:1.18,1.19,1.20
通过极致的定制,每隔x分钟删除某些实体!
点此下载插件详细介绍
🧹 EntityClearer
EntityClearer 是一款 Minecraft 插件,旨在通过移除特定条件下(例如,周围实体过多)的实体来优化服务器性能。它提供了一系列自定义选项,包括间隔设置、警告音效、世界白名单等,并支持 PlaceholderAPI,允许高度定制的消息通知。
🌟 功能特性
- 自定义清理间隔
- 自定义警告音效
- 可定制的实体列表
- 世界白名单
- 保留已命名的实体
- 保留被玩家骑乘的实体
- 移除具有特定生成原因的实体 (需要 Paper)
- 仅移除周围有 x 个其他实体的实体
- 动作栏消息
- 聊天消息
- 标题/副标题消息
- TPS 监控
- MythicMobs 支持
- PlaceholderAPI 占位符
- 更多...
❓ 常见问题
PlaceholderAPI 占位符
EntityClearer 支持 PlaceholderAPI 占位符,允许您在消息中使用动态信息。具体占位符列表请参考 PlaceholderAPI 官方文档。
⌨️ 命令 & 权限
/entityclearer reload- 重载配置文件。- 权限:
entityclearer.reload
- 权限:
⚙️ config.yml
# +---------------------------------------------------------------------------------------+
# | EntityClearer Config |
# +---------------------------------------------------------------------------------------+
# | by JasonHorkles |
# +---------------------------------------------------------------------------------------+
# | Placeholders: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders |
# +---------------------------------------------------------------------------------------+
# General settings
interval: 180 # How often (in seconds) to run the entity clearer. Default: 180
tps-check: true # Should the plugin check the TPS before running? If the TPS is lower than the specified amount in tps-amount, the entity clearer will not run. Default: true
tps-amount: 18 # The amount of TPS required to run the entity clearer. Default: 18
log-to-console: false # Should the plugin log to console when the entity clearer runs? Default: false
debug-mode: false # Should the plugin print debug messages to console? Default: false
# Entity settings
entities: # The entities to remove. Default: [DROPPED_ITEM, ARROW]
- DROPPED_ITEM
- ARROW
nearby-entities: 5 # Only remove entities with x others nearby. Set to 0 to disable. Default: 5
remove-spawn-reasons: # Requires Paper. The spawn reasons to remove entities from. Default: []
- SPAWNER_EGG
- CUSTOM
- CHUNK_GEN
keep-named-entities: true # Should named entities be kept? Default: true
keep-passengers: true # Should entities with passengers be kept? Default: true
# World settings
world-whitelist: # The worlds to run the entity clearer in. Leave empty to run in all worlds. Default: []
- world
- world_nether
- world_the_end
# Message settings
message-type: ACTION_BAR # The type of message to send to players. Options: ACTION_BAR, CHAT, TITLE, SUBTITLE, NONE. Default: ACTION_BAR
messages:
prefix: "&7[&aEntityClearer&7] " # The prefix to use for all messages. Default: "&7[&aEntityClearer&7] "
interval-message: "&eEntities will be cleared in &c%time%&e seconds!" # The message to send to players every interval. Default: "&eEntities will be cleared in &c%time%&e seconds!"
cleared-message: "&aCleared &e%amount%&a entities!" # The message to send to players when the entity clearer runs. Default: "&aCleared &e%amount%&a entities!"
no-entities-message: "&cNo entities were cleared!" # The message to send to players when no entities are cleared. Default: "&cNo entities were cleared!"
tps-too-low-message: "&cThe server is running too slow to clear entities!" # The message to send to players when the TPS is too low. Default: "&cThe server is running too slow to clear entities!"
# Sound settings
warning-sound: BLOCK_NOTE_BLOCK_PLING # The sound to play when the entity clearer is about to run. Default: BLOCK_NOTE_BLOCK_PLING
warning-sound-enabled: true # Should the warning sound be played? Default: true
warning-sound-volume: 1 # The volume of the warning sound. Default: 1
warning-sound-pitch: 1 # The pitch of the warning sound. Default: 1