Skip to content

Commit

Permalink
I hope this fix would work.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlaubb committed Sep 18, 2024
1 parent 6ab9812 commit 0c6a645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ac_BP/src/Data/Default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ export default {
antiAutoClicker: {
enabled: true,
maxClicksPerSecond: 24,
timeout: 200,
timeout: 2000,
minInterval: 35,
punishment: "tempkick",
punishment: "none",
maxVL: 2,
},
antiKillAura: {
Expand Down
3 changes: 0 additions & 3 deletions ac_BP/src/Modules/Combat/Auto Clicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ac_BP/src/Modules/World/Scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
Expand Down

0 comments on commit 0c6a645

Please sign in to comment.