From 0c6a645169b30d36903a1a40fcbc87be1e1c3790 Mon Sep 17 00:00:00 2001 From: jasonlaubb Date: Wed, 18 Sep 2024 18:20:11 +0800 Subject: [PATCH] I hope this fix would work. --- ac_BP/src/Data/Default.ts | 4 ++-- ac_BP/src/Modules/Combat/Auto Clicker.ts | 3 --- ac_BP/src/Modules/World/Scaffold.ts | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ac_BP/src/Data/Default.ts b/ac_BP/src/Data/Default.ts index 59d777da..7d30668a 100644 --- a/ac_BP/src/Data/Default.ts +++ b/ac_BP/src/Data/Default.ts @@ -422,9 +422,9 @@ export default { antiAutoClicker: { enabled: true, maxClicksPerSecond: 24, - timeout: 200, + timeout: 2000, minInterval: 35, - punishment: "tempkick", + punishment: "none", maxVL: 2, }, antiKillAura: { diff --git a/ac_BP/src/Modules/Combat/Auto Clicker.ts b/ac_BP/src/Modules/Combat/Auto Clicker.ts index 9b686178..36090c1e 100644 --- a/ac_BP/src/Modules/Combat/Auto Clicker.ts +++ b/ac_BP/src/Modules/Combat/Auto Clicker.ts @@ -27,8 +27,6 @@ function antiAutoClicker(config: configi, player: Player) { if (!player.hasTag(DisableTags.pvp) && tps.getTps()! > 12 && cps > config.antiAutoClicker.maxClicksPerSecond) { // A - false positive: very low, efficiency: high flag(player, "Auto Clicker", "A", config.antiAutoClicker.maxVL, config.antiAutoClicker.punishment, ["Click Per Second" + ":" + cps.toFixed(0)]); - - player.applyDamage(6); player.addTag(DisableTags.pvp); clickData.delete(id); system.runTimeout(() => { @@ -61,7 +59,6 @@ function antiAutoClickerB (config: configi, player: Player) { const currentIntervalLevel = data.hitTimeList.reduce((a, b) => a + b, 0) / data.hitTimeList.length; // player.sendMessage(currentIntervalLevel.toFixed(2)); if (currentIntervalLevel < config.antiAutoClicker.minInterval) { - player.applyDamage(6); if (now - data.lastflag < 9000) { flag(player, "Auto Clicker", "B", config.antiAutoClicker.maxVL, config.antiAutoClicker.punishment, ["Interval:" + currentIntervalLevel.toFixed(2)]); player.addTag(DisableTags.pvp); diff --git a/ac_BP/src/Modules/World/Scaffold.ts b/ac_BP/src/Modules/World/Scaffold.ts index 1570fe54..f58912e6 100644 --- a/ac_BP/src/Modules/World/Scaffold.ts +++ b/ac_BP/src/Modules/World/Scaffold.ts @@ -150,7 +150,7 @@ function playerPlaceBlockAfterEvent(config: configi, { player, block }: PlayerPl } } else if (now - data.lastPlace > 200 || now - data.lastPlace < 25 || Math.abs(data.lastXRot - rotation.x) < 0.5) data.scaffoldFlagsF = 0; //scaffold/G: check for invalid high extender with high rotation - if (yLoc > -2.1 && yLoc <= -1 && extender - data.avgExt >= 0.5) { + if (yLoc > -2.1 && yLoc <= -1 && extender - data.avgExt >= 0.5 && now - data.lastPlace >= 200 && now - data.lastPlace <= 1000) { data.scaffoldFlagsG++; if (data.scaffoldFlagsG >= 3) { flag(player, "Scaffold", "G", config.antiScaffold.maxVL, config.antiScaffold.punishment, ["Height:" + yLoc.toFixed(2), "ExtenderDiff:" + (extender - data.avgExt).toFixed(2)]);