diff --git a/bukkit/src/main/java/me/xneox/epicguard/bukkit/module/ModuleManager.java b/bukkit/src/main/java/me/xneox/epicguard/bukkit/module/ModuleManager.java index 735f314f..15fa4bcd 100644 --- a/bukkit/src/main/java/me/xneox/epicguard/bukkit/module/ModuleManager.java +++ b/bukkit/src/main/java/me/xneox/epicguard/bukkit/module/ModuleManager.java @@ -71,7 +71,7 @@ public ModuleManager(EpicGuard epicGuard) { public void load() { Config config = new Config("spigot.yml", "plugins/EpicGuard"); - config.setHeader("If you don't know what these settings do, feel free to ask in the discord server."); + config.setHeader("See https://github.com/xxneox/EpicGuard/wiki/Spigot-Configuration"); allowedCommands = config.getOrSetDefault("allowed-commands.list", Arrays.asList("/example", "/example2")); allowedCommandsBypass = config.getOrSetDefault("allowed-commands.bypass-permission", true); diff --git a/core/src/main/java/me/xneox/epicguard/core/EpicGuard.java b/core/src/main/java/me/xneox/epicguard/core/EpicGuard.java index a22f51d7..811fa028 100644 --- a/core/src/main/java/me/xneox/epicguard/core/EpicGuard.java +++ b/core/src/main/java/me/xneox/epicguard/core/EpicGuard.java @@ -60,7 +60,7 @@ public EpicGuard(PlatformPlugin plugin) { this.plugin.scheduleTask(new MonitorTask(this), 1L); this.plugin.scheduleTask(new AttackResetTask(this), 40L); this.plugin.scheduleTask(new UpdateCheckerTask(this), 1800L); - this.plugin.scheduleTask(new DataSaveTask(this), TimeUnit.SECONDS.toMinutes(this.config.autoSaveInterval)); + this.plugin.scheduleTask(new DataSaveTask(this), TimeUnit.MINUTES.toSeconds(this.config.autoSaveInterval)); EpicGuardAPI.setInstance(this); Logger.log("EpicGuard v5 finished startup successfully."); diff --git a/core/src/main/java/me/xneox/epicguard/core/check/impl/RateLimitCheck.java b/core/src/main/java/me/xneox/epicguard/core/check/impl/RateLimitCheck.java index cbe0e30e..074c645a 100644 --- a/core/src/main/java/me/xneox/epicguard/core/check/impl/RateLimitCheck.java +++ b/core/src/main/java/me/xneox/epicguard/core/check/impl/RateLimitCheck.java @@ -46,7 +46,7 @@ public boolean handle(@Nonnull BotUser user) { } private boolean rateLimitCheck(BotUser user) { - Cooldown cooldown = new Cooldown(user.getAddress(), 10); + Cooldown cooldown = new Cooldown(user.getAddress(), this.getConfig().rateLimit); if (this.getEpicGuard().getCooldownManager().hasCooldown(user.getAddress())) { return true; } diff --git a/core/src/main/java/me/xneox/epicguard/core/config/PluginConfiguration.java b/core/src/main/java/me/xneox/epicguard/core/config/PluginConfiguration.java index 7a2c2bb1..02879e1a 100644 --- a/core/src/main/java/me/xneox/epicguard/core/config/PluginConfiguration.java +++ b/core/src/main/java/me/xneox/epicguard/core/config/PluginConfiguration.java @@ -165,11 +165,6 @@ public class PluginConfiguration { @CfgName("custom-proxy-check-url") public String customProxyCheck = "disabled"; - @CfgComment("Limit of requests sent by the proxy/vpn checker.") - @CfgComment("Default (1000) is limit for proxycheck.io with free key.") - @CfgComment("request-limit") - public int requestLimit = 1000; - @CfgComment("If log message contains one of these words, it will") @CfgComment("be hidden. This can save a lot of CPU on big attacks.") @CfgCollectionStyle(CollectionStyle.ALWAYS_NEW_LINE)