diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java index 498a812a..28aa22f5 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java @@ -44,21 +44,21 @@ public InventoryLag() { config.getLong(configPath + ".data-timeframe-millis", 20000, "The time in millis in which to check if the player exceeded the limit.\n" + "Needs to be at least as long as your cooldown millis.")))).build(); - this.rateLimitBytes = config.getLong(configPath + "rate-limit.bytesize-limit", 3584000, + this.rateLimitBytes = config.getLong(configPath + ".rate-limit.bytesize-limit", 3584000, "The limit in bytes the server has sent the server in the form of ItemStacks,\n" + "before the player will be put on a rate-limit.\n" + "Should always be lower than lockout bytesize limit."); - this.screenOpenDelay = config.getInt(configPath + "rate-limit.timeframe-millis", 1500, + this.screenOpenDelay = config.getInt(configPath + ".rate-limit.timeframe-millis", 1500, "The time in millis in which a player is allowed to open x amounts of windows\n" + "but not more."); - this.screenOpenLimit = config.getInt(configPath + "rate-limit.max-window-opens-per-timeframe", 2, + this.screenOpenLimit = config.getInt(configPath + ".rate-limit.max-window-opens-per-timeframe", 2, "The amount of windows that can be opened during the timeframe-millis."); this.lockoutBytes = config.getLong(configPath + ".lockout.bytesize-limit", 5120000, "The upper limit in bytes a player is allowed to request from the server\n" + "within the configured timeframe before he will be put on cooldown.\n" + "During the cooldown, he will not be able to open any inventory screens\n" + "or interact with items."); - this.lockoutMillis = config.getLong(configPath + "lockout.duration-millis", 15000, + this.lockoutMillis = config.getLong(configPath + ".lockout.duration-millis", 15000, "The time in milliseconds the player will have to wait before\n" + "being able to open an inventory again after he exceeded the limit."); } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java index a4e54242..cecfa227 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/InventoryLag.java @@ -44,21 +44,21 @@ public InventoryLag() { config.getLong(configPath + ".data-timeframe-millis", 20000, "The time in millis in which to check if the player exceeded the limit.\n" + "Needs to be at least as long as your cooldown millis.")))).build(); - this.rateLimitBytes = config.getLong(configPath + "rate-limit.bytesize-limit", 3584000, + this.rateLimitBytes = config.getLong(configPath + ".rate-limit.bytesize-limit", 3584000, "The limit in bytes the server has sent the server in the form of ItemStacks,\n" + "before the player will be put on a rate-limit.\n" + "Should always be lower than lockout bytesize limit."); - this.screenOpenDelay = config.getInt(configPath + "rate-limit.timeframe-millis", 1500, + this.screenOpenDelay = config.getInt(configPath + ".rate-limit.timeframe-millis", 1500, "The time in millis in which a player is allowed to open x amounts of windows\n" + "but not more."); - this.screenOpenLimit = config.getInt(configPath + "rate-limit.max-window-opens-per-timeframe", 2, + this.screenOpenLimit = config.getInt(configPath + ".rate-limit.max-window-opens-per-timeframe", 2, "The amount of windows that can be opened during the timeframe-millis."); this.lockoutBytes = config.getLong(configPath + ".lockout.bytesize-limit", 5120000, "The upper limit in bytes a player is allowed to request from the server\n" + "within the configured timeframe before he will be put on cooldown.\n" + "During the cooldown, he will not be able to open any inventory screens\n" + "or interact with items."); - this.lockoutMillis = config.getLong(configPath + "lockout.duration-millis", 15000, + this.lockoutMillis = config.getLong(configPath + ".lockout.duration-millis", 15000, "The time in milliseconds the player will have to wait before\n" + "being able to open an inventory again after he exceeded the limit."); }