From e5b237dae8aaf5b55e9fe905b25b15eea716c5aa Mon Sep 17 00:00:00 2001
From: Luna <lunahatesgogle@gmail.com>
Date: Sat, 24 Jun 2023 14:47:05 -0300
Subject: [PATCH] Add command block packet limit

---
 config/paper-global.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/config/paper-global.yml b/config/paper-global.yml
index 3943795..926d239 100644
--- a/config/paper-global.yml
+++ b/config/paper-global.yml
@@ -93,6 +93,22 @@ packet-limiter:
       action: DROP
       interval: 4.0
       max-packet-rate: 5.0
+    ServerboundSetCommandBlockPacket:
+      action: DROP
+      interval: 1.0
+      max-packet-rate: 51.0
+    ServerboundSetCommandMinecartPacket:
+      action: DROP
+      interval: 1.0
+      max-packet-rate: 51.0
+    ServerboundSetJigsawBlockPacket:
+      action: DROP
+      interval: 1.0
+      max-packet-rate: 51.0
+    ServerboundSetStructureBlockPacket:
+      action: DROP
+      interval: 1.0
+      max-packet-rate: 51.0
 player-auto-save:
   max-per-tick: -1
   rate: -1