diff --git a/plugin.yml b/plugin.yml index f33bcf60..cc45c727 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,7 +3,7 @@ name: NoCheat author: Evenprime main: cc.co.evenprime.bukkit.nocheat.NoCheat -version: 1.09b +version: 1.09c softdepend: [ Permissions, CraftIRC ] diff --git a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java index 32409b6e..f6c5df1e 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/checks/MovingCheck.java @@ -45,7 +45,7 @@ public class MovingCheck extends Check { runningCheck = new RunningCheck(); } - private final int ticksBeforeSummary = 100; + private int ticksBeforeSummary; public long statisticElapsedTimeNano = 0; @@ -508,6 +508,8 @@ public class MovingCheck extends Check { replace("[timeframe]", "%2$d"). replace("[player]", "%1$s"). replace("[violations]", "(%3$d,%4$d,%5$d)"); + + ticksBeforeSummary = config.getIntegerValue("moving.summaryafter")*20; actions = new Action[3][]; diff --git a/src/cc/co/evenprime/bukkit/nocheat/config/NoCheatConfiguration.java b/src/cc/co/evenprime/bukkit/nocheat/config/NoCheatConfiguration.java index c72d3872..5869d005 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/config/NoCheatConfiguration.java +++ b/src/cc/co/evenprime/bukkit/nocheat/config/NoCheatConfiguration.java @@ -157,6 +157,9 @@ public class NoCheatConfiguration { movingNode.add(new LongStringOption("summarymessage", SimpleYaml.getString("moving.summarymessage", "Moving summary of last ~[timeframe] seconds: [player] total Violations: [violations]", yamlContent))); + + movingNode.add(new IntegerOption("summaryafter", + SimpleYaml.getInt("moving.summaryafter", 15, yamlContent))); movingNode.add(new BooleanOption("allowflying", SimpleYaml.getBoolean("moving.allowflying", false, yamlContent))); diff --git a/src/cc/co/evenprime/bukkit/nocheat/wizard/gui/Explainations.java b/src/cc/co/evenprime/bukkit/nocheat/wizard/gui/Explainations.java index 89e9b183..1e47976d 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/wizard/gui/Explainations.java +++ b/src/cc/co/evenprime/bukkit/nocheat/wizard/gui/Explainations.java @@ -110,6 +110,8 @@ public class Explainations { "[player] will be replaced with the name of the player,\n" + "[timeframe] will be replaced with the number of seconds that were observed,\n" + "[violations] will be replaced with the number of violations of each severeness during that time."); + set("moving.summaryafter", "After how many seconds should a summary of all violations in that timeframe\n" + + "be displayed?"); set("moving.allowflying", "If true, all players are allowed to fly (at normal walking speeds)\n" + "(Permissions plugin): Players with permission 'nocheat.flying' are allowed to fly independent of\n" + "the setting of this option.");