LaggRemoverPlus
使用 LaggRemoverPlus 消除服务器卡顿,它是 LaggRemover 的前身。你的服务器是否卡顿严重?有了 LaggRemoverPlus,这些卡顿问题就能迎刃而解!本插件通过易于使用的命令和直观易懂的配置文件,帮助你有效防止服务器出现卡顿。使用该插件,你可以轻松将内存占用减半;它还能卸载未使用的区块、清除物品和实体,并防止在已存在大量实体的区块中生成更多实体!
与旧版 LaggRemover 不同,本插件已更新以采用最新方法并支持最新版本,从而让你的服务器远离卡顿!该插件是对旧版 LaggRemover 的完全重写,但仍保留了相同的功能。
功能特性
- 区块控制 - 服务器上加载过多区块总是令人头疼,这会导致卡顿并使服务器无法发挥其最佳性能。LaggRemoverPlus 通过控制加载哪些区块来解决这一问题:没有玩家的区块将被自动卸载,以防止任何卡顿。
- 有用的内存信息 - LaggRemoverPlus 只需一条命令即可为你提供总内存、空闲内存以及当前使用量的详细信息!如果发现使用率偏高,无需担心,只需运行其中一个实用的命令即可降低使用率!
- 智能延迟 AI (SmartLagAi) - 此功能会检测是否有玩家抱怨卡顿;如果有,它将检查 TPS 或内存使用情况是否不佳,若确实如此则会自动降低资源占用,帮助 TPS 恢复至正常水平!
- 自动消除卡顿 - 本插件会自动消除卡顿,让你无需手动干预!你可以高枕无忧,因为插件会自动处理服务器上发生的任何卡顿问题!
- 无消息模式 - 如果你不希望玩家看到来自 LaggRemoverPlus 的消息,只需启用此选项,那么只有拥有 lrp.view 权限的人才能看到相关消息。
- 防止怪物过量生成 - LaggRemoverPlus 将帮助防止单个区块内生成过多怪物,从而确保服务器和玩家不会遭遇卡顿。插件会自动检测新生成的怪物,如果某个区块内的怪物数量已经足够,则会阻止其继续生成。你可以在配置文件中设置每个区块允许的怪物上限。
- 自动更新器! - 一旦你下载了 LaggRemoverPlus,就无需再次手动下载。每当有新版本发布时,插件都会自动完成更新。
命令与权限
| 命令 | 描述 | 权限 |
| /lrp tps | 查看服务器的 TPS | lrp.tps |
| /lrp ram | 查看服务器的内存信息 | lrp.ram |
| /lrp gc | 运行垃圾回收器以释放部分内存。此命令最多可释放 50% 已用内存!! | lrp.gc |
| /lrp chunks | 查看世界中加载的区块数量 | lrp.chunks |
| /lrp unloadchunks | 卸载世界中所有已加载的区块 | lrp.unloadchunks |
| /lrp info | 显示大量服务器信息 | lrp.info |
| /lrp runprotocol | 执行配置协议 | lrp.runprotocol |
| /lrp clear items -w | 清除世界中的掉落物品。-w 表示带警告 | lrp.clear.items |
| /lrp clear entities (type) -w | 清除世界中指定类型的实体。-w 表示带警告 | lrp.clear.entites |
配置文件
################################################################
# LaggRemoverPlus made by bwfcwalshy #
# Original: #
################################################################
# 如果启用,每 30 秒将卸载没有玩家存在的已加载区块。
Auto-Unload-Chunks: true
# 移除所有世界的出生点区块。
No-Spawn-Chunks: true
# 如果启用,将激活智能延迟 AI 以保持服务器无卡顿
Smart-Lag-Ai: true
# 如果玩家输入 "lag" 或 "lagg",系统将检查指定的 TPS,如果低于阈值则激活延迟消除功能。(SmartLagAi)
TPS: 16.00
# 如果玩家输入 "lag" 或 "lagg",系统将检查指定的内存,如果低于阈值则激活延迟消除功能。单位为 MB (SmartLagAi)
RAM: 400
# 这是你希望由智能延迟消除工具执行的协议 ID。可用协议: clear_items, warn_clear_items, warn_clear_entities_all, warn_clear_entities_hostile, warn_clear_entities_peaceful, clear_entities_all, clear_entities_hostile, clear_entities_peaceful, command
Lag-Protocol: warn_clear_items
# 当使用命令协议时将执行此命令。可以是任何插件的任何命令。(不带 / 前缀)
Lag-Command: help 1
# 物品清除冷却时间。这是智能延迟检测在下一次运行其协议之前必须等待的时间。时间单位为分钟!
Protocol-Cooldown: 5
# 禁用这些世界中的自动保存。这应用于地形不会被编辑的世界。添加 DISABLED 以保存所有世界
Save-Disabled-Worlds:
- 'DISABLED'
# 这将自动在指定时间后移除卡顿。时间单位为分钟!
Auto-Lag-Removal: true
Auto-Lag-Time: 10
# 这意味着没有 lrp.view 权限的玩家将看不到来自 LaggRemoverPlus 的消息
No-Messages: false
# 这会防止在包含超过“Limit-Mobs-At”数量的生物的区块中生成生物。
Limit-Mobs: true
# 一个区块中可以生成的生物的最大数量
Limit-Mobs-At: 30
# 如果为 true,当有新版本的插件发布时,它会自动为你更新!
Auto-Update: true
自动更新器
LaggRemoverPlus 拥有自动更新功能,因此你无需再频繁检查此页面以获取更新!如果你希望在配置文件中禁用自动更新器,请将 Auto-Update 设置为 false。这意味着你将需要手动访问此页面来获取更新。
捐赠
如果你想捐赠,可以点击页面顶部的捐赠按钮。捐赠帮助我继续制作插件,并让我感受到大家对我工作的认可与欣赏。
LaggRemoverPlus
Remove lag in your server with LaggRemoverPlus the predecessor to LaggRemover. Do you have a laggy server? Well with LaggRemoverPlus that lag can go away! This plugin will help prevent lag on your server with easy to use commands and an easy to understand config! With this plugin you can easily cut your ram usage in half, this plugin can unload unused chunks, clear items and entities and prevent more entities from spawning in chunks with a lot in already!
Unlike the old LaggRemover this is updated to use the latest methods and support the latest versions to keep your server lag free! This plugin is a complete re-code of the old LaggRemover but still keeps the same functionality
Features
- Chunk control - Having a lot of chunks loaded on your server is never fun, it can cause lag and mean your server does not perform to it's potential. LaggRemoverPlus helps tackle this by controlling which chunks are being loaded, chunks with no players in will be unloaded to prevent any lag.
- Helpful RAM Information - LaggRemoverPlus gives you information to how much RAM you have, how much is free and how much is being used all with just 1 command! If you see the usage a little high, no worries just run one of the many helpful commands and take that usage down!
- SmartLagAi - This feature will check to see if anyone complains about lag, if they do it will detect if the tps or ram usage is not good enough it will reduce the usage and help that tps get back up!
- Automatic Lag Removal - This plugin will automatically remove lag so you don't have to! You can sleep knowing your server will take care of any lag happening on the server!
- No Message Mode - If you don't want your players to see the messages from LaggRemoverPlus then simple enable this option and only the people will lrp.view will see any messages.
- Mob Overhaul Prevention - LaggRemoverPlus will help prevent a lot of mobs spawning in one chunk so your server and players will never have to lag. The plugin will automatically detect when new mobs are spawned and will prevent them if there are already enough in one chunk. You can configure the amount of mobs in one chunk the config.
- Automatic Updater! - Once you download LaggRemoverPlus, you never have to again. Each time a new version is released, the plugin is automatically will update.
Commands and permissions
| Command | Description | Permission |
| /lrp tps | View your servers tps | lrp.tps |
| /lrp ram | View your servers ram information | lrp.ram |
| /lrp gc | Run the garbage collector and free up some ram. This command can free up to 50% of your used ram!! | lrp.gc |
| /lrp chunks | View the amount of chunks loaded in your worlds | lrp.chunks |
| /lrp unloadchunks | Unloaded any loaded chunks in your worlds | lrp.unloadchunks |
| /lrp info | Displays a whole bunch of server information | lrp.info |
| /lrp runprotocol | Run the config protocol | lrp.runprotocol |
| /lrp clear items -w | Clear dropped items from the world. -w for warning | lrp.clear.items |
| /lrp clear entities (type) -w | Clear a type of entity from the world. -w for warning | lrp.clear.entites |
Configuration
################################################################
# LaggRemoverPlus made by bwfcwalshy #
# Original: #
################################################################
# If enabled, every 30 seconds it will unload loaded chunks with no players.
Auto-Unload-Chunks: true
# Removes spawn chunks for all the worlds.
No-Spawn-Chunks: true
# If enabled the smart lag ai will be activated to keep your server lag free
Smart-Lag-Ai: true
# If a player types "lag" or "lagg" it will check the tps specified and if it is lower it will activate the lag removal. (SmartLagAi)
TPS: 16.00
# If a player types "lag" or "lagg" it will check the ram specified and if it is lower it will activate the lag removal. Measured in MB (SmartLagAi)
RAM: 400
# This is the protocol id that you want executed by the smart lag removal tool. PROTOCOLS: clear_items, warn_clear_items, warn_clear_entities_all, warn_clear_entities_hostile, warn_clear_entities_peaceful, clear_entities_all, clear_entities_hostile, clear_entities_peaceful, command
Lag-Protocol: warn_clear_items
# This command will be run when the command protocol is used. This can be any command from any plugin. (WITHOUT THE / PREFIX)
Lag-Command: help 1
# Item clearing cool down. This is how long the smart lag detection has to wait until it can run its protocol again. Time is in minutes!
Protocol-Cooldown: 5
# Disables auto save in these words. This should be used for worlds in which terrain is not being edited. Add DISABLED to save all worlds
Save-Disabled-Worlds:
- 'DISABLED'
# This will automatically remove lag after a specified period of time. Time is in minutes!
Auto-Lag-Removal: true
Auto-Lag-Time: 10
# This means players without the lrp.view permission will not see messages from LaggRemoverPlus
No-Messages: false
# This prevents mobs from spawning in chunks which contains more than the "Limit-Mobs-At" amount.
Limit-Mobs: true
# The max number of mobs that can spawn in a chunk
Limit-Mobs-At: 30
# If true, when a new version of the plugin is out it will automatically update for you!
Auto-Update: true
Auto Updater
LaggRemoverPlus has an auto updater so you never need to check this page for updates! If you would like to disable the auto-updater in the config turn the Auto-Update to false. This means you will have to come to this page for updates though.
Donate
If you would like to donate you can click the donate button at the top of the page. Donations help me continue to make plugins and show me that people appreciate my work.
评论 0
登录后参与评分
还没有评论,来抢沙发吧