
这是 LagAssist 插件的分支版本。我的目标是支持更新版本的 Spigot 或 Paper Minecraft。你可以在这里找到原始的 Spigot 页面。
LagAssist 是一个旨在帮助手动和自动减少延迟的插件。它包含许多可用于定位延迟源并消除它们的工具。它还包含各种基准测试功能,可帮助你提前规划基础设施。
LagAssist 也非常轻量级,在 100 名玩家在线时仅占用 0.4% 的刻(ticks),同时保留了大量功能。
12合1插件:
LagAssist 可用于替换一系列游戏玩法和与延迟相关的插件,同时降低成本。LagAssist 的功能通常更轻量,且不会移除任何功能性。
以下是 LagAssist 可以替代其功能的插件:
- MergedMob
- React
- JetsSellChest
- FPSHelper
- FarmLimiter
- Redstone Clock Detector
- HLR (Crop hoppers)
- Best View Distance
- McCleaner
- CustomPayloadFixer
- FixCrashBook
- LagAssist's Unique Features
测试服务器:
LagAssist 被一些大型网络使用。Gamster 就是其中之一,拥有超过 2000 名常驻玩家。你可以通过访问他们的游戏模式(IP: play.gamster.org)来体验 LagAssist。
权限:
- lagassist.use - 使用 LagAssist GUI 和命令
- lagassist.reload - 具有重新加载插件的能力。
- lagassist.chunkanalyser - 允许使用 LagAssist 的分块分析器功能(也需要 lagassist.use)
- lagassist.hoppers.togglesell - 切换销售漏斗的使用
- lagassist.hoppers.customfilter - 分块/销售漏斗过滤器
延迟监控:
延迟监控器分析服务器性能并根据服务器 TPS 运行措施。它完全可配置,允许客户端配置从监控器的频率到根据服务器 TPS 执行哪些措施的所有内容。
它会向玩家和工作人员显示不同的消息,帮助工作人员了解已执行了哪些措施,而不会向玩家提供机密信息(可配置)。
分块分析器:
分块分析器基于预定义的评分表帮助查找卡顿的分块。你可以为每个普通实体和图块实体设置不同的评分等级。运行命令将列出得分最高的分块。你可以点击每个分块以传送到那里。
此功能非常高级,将极大地帮助你找到延迟源以及减轻延迟的有用信息。
分块分析器还允许你检查当前分块的得分。此功能对于检查可能看起来卡顿、过度拥挤的区域等非常有用。
延迟地图:
延迟地图是一种可视化服务器性能的简单方法。它有助于监控延迟尖峰并找出服务器何时开始卡顿。
延迟计:
延迟计是一个最小化的延迟可视化工具,可以帮助你在进行其他任务时监控延迟。
当服务器通过更快地运行刻计算从延迟尖峰中恢复时,它甚至会显示出来。
延迟概览:
延迟概览是对系统信息的简单但详细的查看。它可以帮助找出可能导致硬件级别延迟尖峰的原因;帮助监控共享主机超售了多少,等等。
每次你使用 /tps 时都会显示一个延迟概览。
红石剔除器:
红石剔除器是 LagAssist 最先进功能之一。它完全可配置,你可以将其设置为在每次红石被剔除时简单地禁用红石机器,或者检查观察者刻的次数并移除那些超过特定速率的机器。
它对防止红石延迟非常有用,因为“断路器”设置可以更改为推迟创建大型且低效的农场,同时保留简单高效的农场。
我强烈建议它在红石广泛可用的服务器上使用,例如:Creative、Survival、Factions、Skyblock 等。
基准测试:
基准测试系统提供了有关你的机器的重要详细信息,以及你将能够容纳多少玩家的近似值。它通过模拟浏览器从 Passmark 的 CpuBenchmark 网站获取 CPU 数据,并从你的进程中获取内存信息,并使用高级算法找出你将能够容纳多少玩家。
它还向你显示从任何你想要的 FTP 服务器的下载和上传速度信息。默认的一个高度可靠且快速,因此你可以确保无论你在世界的哪个地方,基准测试都是准确的。
注意:基准测试系统依赖于从系统中获取 CPU 名称。Java 没有提供任何简单的方法来实现这一点,所以我不得不创建自己的高效紧凑的系统来获取 CPU 名称。该系统依赖于操作系统。目前,仅实现了 Windows、Linux 和 macOS。
客户端优化器(新):
客户端优化器允许玩家在诸如炮击、堆沙子等高负载活动期间获得更高的 FPS。它使用数据包拦截来隐藏对玩家而言卡顿的功能,从而让他们在不大幅改变游戏玩法的情况下获得更高的 FPS。我在客户端延迟方面看到了巨大的改进。不仅如此,玩家甚至可以使用一个非常好且简单的 GUI 配置他们想要启用和不启用的功能;使用一个可以由你配置的自定义命令。
ping 基准测试:
ping 基准测试是一种查找关于玩家与你服务器连接性信息的简单方法。它现在很简单,但却提供了相当多的有用信息。
分块漏斗:
将区块中的所有物品直接吸入漏斗。这在物品过多导致卡顿的情况下非常有用,可以显著提高性能。它不会影响玩家丢弃的物品,是faction服务器清理物品卡顿的好方法。
与其他提供类似功能的插件不同,LagAssist 使用智能区块缓存系统,在保持相同视觉功能的同时将性能提升20倍。
lagassist 不仅包含一个极其高效的 chunkhopper 功能,还允许玩家为他们的 chunkhopper 创建过滤器!这既可用于性能优化也可用于游戏玩法,并且是为大型网络设计的。
玩家可以通过 Shift + 右键点击漏斗来访问过滤器,只需正常右键点击即可打开漏斗。
介绍自动售卖漏斗
自动售卖漏斗是一个很好的盈利工具,也是市场上现有售卖箱插件的完美替代品。与其他自动售卖实现方式不同,lagassist 的自动售卖漏斗实现精确、高效且直观。它具有惊人的可配置潜力和可切换的功能:
- Shift + 左键点击以启用/禁用自动售卖漏斗(需要权限)
- Shift + 右键点击设置物品过滤器(与自动售卖漏斗一起使用)
不仅如此,lagassist 还允许你销售乘数,可以通过权限分配给每个玩家!
lagassist.sellhopper.<MULTIPLIER%>
智能实体堆叠:
考虑性能的实体堆叠。LagAssist 使用的算法专为处理大量实体而设计。这意味着数千个实体可以几乎瞬间完成堆叠,不会出现性能下降。
LagAssist 的堆叠器与90%已存在的堆叠器完全兼容,因为它使用实体名称来确定其堆叠值。
防崩溃数据包分析器:
通过启用反崩溃模块防止作弊客户端通过非法数据包使服务器崩溃。它通过分析数据包并断开所有可疑连接来工作。
该系统完全可配置,因此即使没有Java经验也可以添加自己的检测模块。
只需启用调试系统,了解是什么导致数据包使服务器崩溃,然后配置系统来检测它。
物理效果禁用器:
当服务器卡顿时禁用物理效果元素。它可以配置为仅禁用某些功能,甚至可以在启动时禁用。
这还可以用来移除未使用的游戏功能,从而优化服务器。
区块限制器:
限制每个区块中允许存在的实体和方块实体的数量,以限制刷怪频率。该功能在创意服务器中非常有效,因为玩家可能会生成大量矿车来使服务器卡顿。此功能仍处于测试阶段,但已经过充分测试。
动态视距:
动态计算最佳视距,以最大化玩家满意度并最小化服务器负载。该系统非常先进且可配置,可与任何小游戏兼容。配置文件易于理解,因此您应该能够轻松自行配置。
MobCuller(怪物清理器):
当 TPS 较低时,自动清除怪物。它有助于移除高密度区域的怪物。设置为不删除有名字的怪物,以保持类似原版的游戏体验。
Spawner Improver(刷怪笼优化器):
刷怪笼可能是 Minecraft 服务器的主要卡顿来源之一。因此,我提供了极其简便的方法来修改刷怪笼的属性,从而优化游戏体验和性能。您不仅可以修改刷怪笼的工作方式,还可以根据一定概率自动移除部分刷怪笼,以防玩家拥有过多刷怪笼导致服务器卡顿。此功能在 gamster.org 上取得了显著成效:一次误操作导致玩家拥有极多刷怪笼并使服务器严重卡顿,而实施刷怪笼优化后,TPS 提升了 30%(从 16 TPS 提升至 19 TPS)。
世界黑名单:
选择 LagAssist 不生效的世界。如果您有一个枢纽世界(hub world),希望即使服务器卡顿时光学红石始终正常工作,此功能尤其有用。
LagAssist 与其他反卡顿插件的对比
大多数防卡顿插件依赖于服务器管理员无法正确配置服务器这一事实,并试图对此进行修正。例如,有些插件每隔 5 分钟左右清除一次物品,这不仅毫无用处,而且即使不使用任何插件也能实现同样的效果。Spigot 提供了一个名为 item-despawn-rate 的设置,可以无需那些令人烦恼的问题(如玩家不幸刚掉落物品时物品就消失)而达到相同的目的。
此外,其中很大一部分插件允许管理员手动触发垃圾回收(Garbage Collection)。Java 会在需要时自动清理内存,而在不需要更多 RAM 时强制触发垃圾回收是不推荐的。
甚至有些插件被报告自身会产生卡顿,每次 tick 占用高达 6% 的资源(而 LagAssist 在大多数服务器中仅占用约 0.3%)。
LagAssist 采用了不同的方法。它是基于一个良好的 Spigot(也推荐 Paper,我强烈推荐)服务器开发的,旨在帮助大型服务器管理员实现大量玩家在线而不产生卡顿。它不仅修复卡顿,还能帮助预防卡顿的发生。它提供了一些优秀的工具,可以在开发服务器时帮助你了解服务器的限制以及你如何克服这些限制。

This is the fork of LagAssist plugin. My goal here is to support for newer version of Spigot or Paper Minecraft. You can find the original Spigot page here.
LagAssist is a plugin created to help manually and automatically reduce lag. It includes many tools that can be used to locate lag sources and remove them. It also includes various benchmark features, that will help you plan your infrastructure ahead.
LagAssist is also light-weight, consuming only 0.4% of ticks with 100 players online, while also retaining a lot of features.
12 IN 1 PLUGIN:
LagAssist can be used to replace a wide array of gameplay & lag-related plugins while also reducing costs. LagAssist's features are often more light-weight without removing any functionality.
These are the plugins whose features lagassist can replace:
- MergedMob
- React
- JetsSellChest
- FPSHelper
- FarmLimiter
- Redstone Clock Detector
- HLR (Crop hoppers)
- Best View Distance
- McCleaner
- CustomPayloadFixer
- FixCrashBook
- LagAssist's Unique Features
Test Servers:
LagAssist is used by some large networks. Gamster is one of them and has over 2000 players constantly. You can check lagassist by visiting their game modes (IP: play.gamster.org)
Permissions:
- lagassist.use - Use the LagAssist GUI & Commands
- lagassist.reload - Have the ability to reload the plugin.
- lagassist.chunkanalyser - Allow using the chunkanalyser feature of lagassist (Also needs lagassist.use)
- lagassist.hoppers.togglesell - Toggle sell hopper use
- lagassist.hoppers.customfilter - Chunk/Sell hopper Filter
LagMonitor:
The lag monitor analyses the server performance and runs measures according to the server tps. It is fully configurable, allowing clients to configure everything from the monitor's frequency, and what measures will get executed depending on the server tps.
It shows different messages to the players and staff, helping staff know what measures have been executed, while not offering confidential information to the player (configurable).
ChunkAnalyser:
The chunkalayser helps find laggy chunks based on a predefined score table. You can set different score ratings for each normal & tile entity. Running the command will list the chunks with the highest score. You can click each chunk to teleport to it.
This feature is highly advanced and will highly help you to find lag sources along with useful info to mitigate it.
The chunkanalyser also allows you to check the score for the current chunk. This feature is pretty usefull to check areas which might seem laggy, superpopulated, etc.
LagMap:
The lagmap is a simple way to visualize server performance. It helps to monitor lag spikes and find when the server starts lagging.
LagMeter:
The LagMeter is a minimal lag-visualizer that can help you monitor lag while doing other tasks.
It will even show when the server is recovering from a lag spike by running tick calculations faster.
LagOverview:
LagOverview is a simple yet detailed look into system information. It can help to find out what may be causing lag spikes on the hardware-level; help monitor how much shared hosts oversell, and more.
A Lag-Overview is shown each time you use /tps.
RedstoneCuller:
The Redstone-Culler is one of the most advanced features of LagAssist. It is fully configurable, and you can set it to do anything from simply disabling Redstone-machines each time the Redstone is culled to checking how many times observers tick and removing the ones that pass a certain rate.
It is very useful for preventing Redstone lag, as the "breaker" setting can be changed to defer creating large and inefficient farms while leaving simple, efficient farms intact.
I highly recommend it for servers where redstone is widely available, such as: Creative, Survival, Factions, Skyblock, etc.
Benchmark:
The benchmark system offers important details about your machine, along with an approximation of how many players you will be able to keep. It gets the CPU data from Passmark's CpuBenchmark site by simulating a browser, and the memory information from your process and uses an advanced algorithm to find how many players you will be able to keep.
It also shows you information about your download and upload speed from any FTP server you want. The default one is highly reliable and fast, so you can make sure that the benchmark will be right wherever you are in the world.
Note: The benchmark system relies on getting the CPU name from the system. Java doesn't offer any easy way to do it, so I had to create my own efficient and compact system to get the CPU name. The system is OS-Dependent. Currently, only Windows, Linux, and macOS are implemented.
Client-Side Optimizer (NEW):
The client optimizer allows players to have higher FPS during some high-load activities like cannoning, stacking sand, etc. It uses packet interception in order to hide laggy features for players, and thus allows them to have higher FPS without altering the gameplay too much. I've seen large improvements with Client-side lag. Not only that, but players can even configure what they want enabled and what not using a very nice & easy GUI; using a custom command that can be configured by you.
Ping Benchmark:
The ping benchmark is a simple way to find information about the playes' connectivity to your server. It is simple now, yet it gives quite a lot of useful informations.
ChunkHoppers:
Catch all items from a chunk directly into a hopper. This is really useful if you're having lag with items, and can thus highly increase the performance. It won't affect player-dropped items and is a good way for factions servers to get rid of item lag.
Unlike other plugins providing similar functionality, LagAssist uses a smart chunk caching system to improve the performance 20-fold, while retaining the same visual functionality.
Not only does lagassist have an extremely efficient chunkhopper feature included, but it also allows players to create filters for their chunkhoppers! This can be used both for performance & gameplay purposes and is made with large networks in mind.
Players can access the filter by Shift + Right Click the hopper, and open the hopper by just normally using RightClick.
Introducing Sell Hoppers
Sell hoppers are a great monetizer and an amazing replacement to sell chest plugins available on the market. Unlike other implementations of auto-sell, lagassist's sell hopper implementation is exact, efficient, and straight-forward. It comes with amazing configurability potential and toggleable functionality:
- Shift + Left Click to enable/disable sell hopper (requires permission)
- Shift + Right Click to set the filter of items (used with sell hoppers)
Not only that, but lagassist allows you to sell multipliers that can be given per player using permissions!
lagassist.sellhopper.<MULTIPLIER%>
Smart Entity Stacking:
Stack entities with performance in mind. The algorithm that LagAssist uses was made for huge entity throughput. This means that thousands of entities can be stacked almost instantly, without performance dips.
LagAssist's stacker is fully compatible with 90% of already existent stackers, as it uses the entity name as a way to know the stack value of it.
Anti-Crash Packet Analyser:
Prevent hacked clients from crashing your server using illegal packets by enabling the anti-crasher module. It works by actively analyzing packets and dropping all connections that are found suspicious.
The system is entirely configurable, so you can add your own detection modules without any Java experience.
Just enable the debug system, understand what makes the packet crash the server and configure the system to detect it.
PhysicsDisabler:
Disable physics elements when the server is lagging. It can be configured to only disable some features, or even disable it on startup.
This can also be used to remove unused gameplay features, in order to optimize the server.
ChunkLimiter:
Limit the number of entities and tile entities allowed in one chunk in order to rate-limit mob-spawning. It is highly effective on creative servers where players may spawn a lot of minecarts in order to lag the server. This feature is still in beta but has been tested pretty well.
Dynamic View Distance:
Dynamically calculate the optimal view distance for maximum player satisfaction and minimal server load. This system is very advanced and configurable and can be made to work with any minigame. The config is pretty self-explanatory so it shouldn't be hard to configure yourself.
MobCuller:
Culls the mobs if the tps is low. It can help with removing mobs from highly-populated areas. It is set not to remove mobs that are named, in order to a vanilla-like gameplay.
Spawner Improver:
Spawners can be a large source of lag for Minecraft servers. Thus, I've made it very simple to modify spawner attributes in order to optimize both gameplay and performance. Not only can you modify how spawners work, but also automatically remove some them based on chance in case players have extremely many spawners. This feature has had amazing results on gamster.org, where a miscalculation lead to players having exceedingly many spawners that lagged the server. The implementation of the spawner improved the TPS by 30% (from 16 TPS to 19 TPS).
World Blacklist:
Choose which worlds lagassist will not have an effect on. It is especially helpful if you have a hub world where Redstone should always work, even if the server is lagging.
LagAssist vs Other anti-lag plugins
Most anti-lag plugins count on the inability of the server owner to configure his server properly and correct for that. For example, some clear items every 5 minutes or so, which is not only useless, but that can even be achieved without any plugins. Spigot has a setting named item-despawn-rate that can be set to accomplish the same thing without annoyances such as items disappearing just as they are dropped if the player is unfortunate.
Also, a large portion of them allows the owner to trigger a Garbage Collection. Java clears memory when it needs to, and triggering it when it doesn't need more RAM is not recommended.
Some of them have even been reported to produce lag by themselves, even taking up to 6% per tick (while lagassist takes ~0.3% for most servers).
LagAssist has a different approach. It is developed to work on top of a good spigot (& paper too, I really recommend it) server and to help large server owners achieve large player counts without lag. Not only does it fix lag, but also help prevent it. It has some great tools that can help while developing the server in order to understand the server's limits and how you can overcome that.
评论 0
登录后参与评分
还没有评论,来抢沙发吧