9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 03:19:22 +00:00

Add mspt sync interval

This commit is contained in:
violetc
2023-07-06 16:08:11 +08:00
parent f34bf7e61e
commit 9df669b765
2 changed files with 7 additions and 5 deletions

View File

@@ -128,10 +128,10 @@ index 35d2da9d91dcdd89de7c0f4af028fd182376ea8d..d73482fb1e71fe2951e96ae0593de268
.withRequiredArg()
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..cf9f2097abbfe6050b91301b2807feed7f697b71
index 0000000000000000000000000000000000000000..5ce1642b5e2ac2847cf48eb2e03de869e15598a1
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
@@ -0,0 +1,802 @@
@@ -0,0 +1,804 @@
+package top.leavesmc.leaves;
+
+import com.destroystokyo.paper.util.SneakyThrow;
@@ -745,7 +745,9 @@ index 0000000000000000000000000000000000000000..cf9f2097abbfe6050b91301b2807feed
+ }
+
+ public static boolean msptSyncProtocol = false;
+ public static int msptSyncTickInterval = 20;
+ private static void msptSyncProtocol() {
+ msptSyncTickInterval = getInt("settings.protocol.bladeren.mspt-sync-tick-interval", msptSyncTickInterval);
+ msptSyncProtocol = getBoolean("settings.protocol.bladeren.mspt-sync-protocol", msptSyncProtocol);
+ }
+