Freedom-01 has been attacked several times by lag machines which have been used to drop the TPS quite considerably. Paper, I found out, has a setting that optimizes redstone to reduce server lag. The setting, use-faster-eigencraft-redstone when set to true, changes redstone behaviour to reduce lag while maintaining its functionality. I feel it would be worth a shot to implement given its only changes a single thing in Paper.yml and as such, requires 0 developer effort to try and see if it makes a difference in dealing with the effects of lag machines. The recent spike in lag machines is primarily the variety pictured below which is very easy to construct and use with the capability of crashing the server with ease.
I've also tested the setting on my own server with a similar lag machine setup and noticed no server-crippling drops in TPS. In fact, the lowest the TPS dropped was in the 19s range. No matter how many times I spam-clicked the lever, the TPS would not drop with optimizations on.
My test results:
Quote! Lag Machine I tested with: (NOT ON TF)
Setting On:
Setting Off:
Code Display More8.04 07:25:40 [Server] ERROR --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - git-Paper-187 (MC: 1.18.1) --- 28.04 07:25:40 [Server] ERROR The server has not responded for 10 seconds! Creating thread dump 28.04 07:25:40 [Server] ERROR ------------------------------ 28.04 07:25:40 [Server] ERROR Server thread dump (Look for plugins here before reporting to Paper!): 28.04 07:25:40 [Server] ERROR Ticking entity: minecraft:player, entity class: net.minecraft.server.level.EntityPlayer 28.04 07:25:40 [Server] ERROR Entity status: removed: false, valid: true, alive: true, is passenger: false 28.04 07:25:40 [Server] ERROR Entity UUID: d4de91f4-f039-4124-a531-39fcb9698d35 28.04 07:25:40 [Server] ERROR Position: world: 'World' at location (27.936586492894293, 50.0, 29.774246860696053) 28.04 07:25:40 [Server] ERROR Velocity: (0.0, 0.0, 0.0) (in blocks per tick) 28.04 07:25:40 [Server] ERROR Entity AABB: AABB[27.636586480973364, 50.0, 29.474246848775124] -> [28.23658650481522, 51.799999952316284, 30.074246872616982] 28.04 07:25:40 [Server] ERROR Total packets processed on the main thread for all players: 29486 28.04 07:25:40 [Server] ERROR ------------------------------ 28.04 07:25:40 [Server] ERROR Current Thread: Server thread 28.04 07:25:40 [Server] ERROR PID: 42 | Suspended: false | Native: false | State: RUNNABLE 28.04 07:25:40 [Server] ERROR Stack: 28.04 07:25:40 [Server] ERROR java.base@17.0.3/java.lang.invoke.LambdaForm$MH/0x0000000801e58000.invoke_MT(LambdaForm$MH) 28.04 07:25:40 [Server] ERROR com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) 28.04 07:25:40 [Server] ERROR co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) 28.04 07:25:40 [Server] ERROR org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) 28.04 07:25:40 [Server] ERROR org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.neighborChanged(Level.java:802) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.updateNeighborsAt(Level.java:758) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updatePowerStrength(RedStoneWireBlock.java:409) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updateSurroundingRedstone(RedStoneWireBlock.java:274) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.neighborChanged(RedStoneWireBlock.java:529) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.neighborChanged(BlockBehaviour.java:916) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.neighborChanged(Level.java:809) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.updateNeighborsAt(Level.java:758) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updatePowerStrength(RedStoneWireBlock.java:409) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updateSurroundingRedstone(RedStoneWireBlock.java:274) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.neighborChanged(RedStoneWireBlock.java:529) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.neighborChanged(BlockBehaviour.java:916) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.neighborChanged(Level.java:809) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.updateNeighborsAt(Level.java:759) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updatePowerStrength(RedStoneWireBlock.java:409) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updateSurroundingRedstone(RedStoneWireBlock.java:274) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.neighborChanged(RedStoneWireBlock.java:529) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.neighborChanged(BlockBehaviour.java:916) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.neighborChanged(Level.java:809) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.updateNeighborsAt(Level.java:758) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updatePowerStrength(RedStoneWireBlock.java:409) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updateSurroundingRedstone(RedStoneWireBlock.java:274) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.neighborChanged(RedStoneWireBlock.java:529) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.neighborChanged(BlockBehaviour.java:916) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.neighborChanged(Level.java:809) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.Level.updateNeighborsAt(Level.java:759) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updatePowerStrength(RedStoneWireBlock.java:409) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.updateSurroundingRedstone(RedStoneWireBlock.java:274) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.RedStoneWireBlock.neighborChanged(RedStoneWireBlock.java:529) 28.04 07:25:40 [Server] ERROR net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.neighborChanged(BlockBehaviour.java:916) 28.04 07:25:45 [Multicraft] Skipped 446 lines due to rate limit (50/s)
I crashed my server with the device pictured and had the setting disabled.