Latency Protection by Coder12

Latency protection attempts to prevent players from glitching through protected nodes. By either teleporting the player or damaging them.

19 downloads

Latency Protection

Latency protection mod attempts to prevent players from glitching through protected nodes.
By either teleporting the player or damaging them.

Damage mode

This mode attempts to prevent players from glitching through protected nodes. By damaging players who interact with a protected position too fast.

Teleport mode

This mode attempts to prevent players from glitching through protected nodes. By recording position every 20 seconds (This can be changed in settings) and teleporting them if the protection interaction happens in a very quick time frame. If a player interacts with a protected node the position will not be recorded for an extra cycle. Before recording a position, the player’s avg_jitter is checked to make sure the player is not lagging out.

Setting types

The timer for when to record a player position.
This only works if punishment is set to teleport.

latency_protection.timer = 20

The max jitter a player can have before refusing the position update.
This only works if punishment is set to teleport.

latency_protection.jitter_max = 1.5

The time limit between is_protected calls.
If the function is called too fast the player will be teleport or damaged.
time_max is read in microseconds.

latency_protection.time_max = 10000

Damage amount to apply to the player.
This only works if punishment is set to damage.

latency_protection.damage = 16

Set what type of punishment will be given to a player: - Teleport the player. - Damage the player.

latency_protection.punishment = "damage"