From 6e037376e1f4f42d4ea986e82eb061086df1e9e6 Mon Sep 17 00:00:00 2001 From: RedstoneFuture Date: Tue, 16 Apr 2024 19:27:34 +0200 Subject: [PATCH] Adding new 'high-frequency-listener' setting --- .../java/com/plotsquared/core/configuration/Settings.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java index 859c96673..9cc0fb0b0 100644 --- a/Core/src/main/java/com/plotsquared/core/configuration/Settings.java +++ b/Core/src/main/java/com/plotsquared/core/configuration/Settings.java @@ -43,6 +43,11 @@ public class Settings extends Config { "Leave it off if you don't need it, it can spam your console."}) public static boolean DEBUG = true; + @Comment({"The activity of high-frequency event listener can be deactivated here to improve the server performance. ", + "Affected settings: 'redstone' settings here below. Affected flags: 'disable-physics', 'redstone'. ", + "Only set the setting to 'false' if you do not need any of the above settings and flags."}) + public static boolean HIGH_FREQUENCY_LISTENER = true; + @Create // This value will be generated automatically public static ConfigBlock AUTO_CLEAR = null; // A ConfigBlock is a section that can have multiple instances e.g. multiple expiry tasks