From 9e6a5efc17ed0b75bfccc422386541accc63d170 Mon Sep 17 00:00:00 2001 From: Zrips Date: Fri, 24 Jun 2022 13:26:06 +0300 Subject: [PATCH] Forcing batch payment delay to 1 or more seconds. --- .../java/com/gamingmesh/jobs/config/GeneralConfigManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/config/GeneralConfigManager.java b/src/main/java/com/gamingmesh/jobs/config/GeneralConfigManager.java index 7c87a5c8..2e9be64c 100644 --- a/src/main/java/com/gamingmesh/jobs/config/GeneralConfigManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/GeneralConfigManager.java @@ -555,6 +555,9 @@ public class GeneralConfigManager { "Setting this too low may cause tick lag. Increase this to improve economy performance (at the cost of delays in payment)"); economyBatchDelay = c.get("economy-batch-delay", 5); + // We need this to be atleast 1 or more seconds + economyBatchDelay = economyBatchDelay < 1 ? 1 : economyBatchDelay; + c.addComment("economy-async", "Enable async economy calls.", "Disable this if you have issues with payments or your plugin is not thread safe."); economyAsync = c.get("economy-async", true);