Photon-GitHub / AntiCheatAddition

An anticheat with nieche checks to cover cheats usually not covered by anticheats.
GNU General Public License v3.0
153 stars 43 forks source link

AAC hook not working properly #472

Closed iFlamingoz closed 2 years ago

iFlamingoz commented 3 years ago

6.5.3: image 7.1.2: image

Server Information: Server Ver: PaperSpigot 1.8.8 AACAdditionPro Ver: 7.1.4 AAC Ver: 5.1.0 Protocollib Ver: 4.7.0

iFlamingoz commented 3 years ago

Seems like this might be the case for commands on modules as well. Without AAC: https://prnt.sc/1fm2u0a With: https://prnt.sc/1fm5crv

Photon-GitHub commented 3 years ago

Yes, that is intended behaviour, just read the config comments:

# If this option is active and AAC is installed AACAdditionPro will not execute any commands specified above and instead
# hooks the AAC feature system to allow you to specify punishments via the AAC config.
# This way, AACAdditionPro's checks will also appear in AAC's status messages.

I mean, I could add an option to still execute the commands, but that would kind of defeat the purpose of AAC integration…

iFlamingoz commented 3 years ago

Alright thought sentinel commands should execute even if AAC was hooked

Photon-GitHub commented 3 years ago

You can access the sentinel modules just like any other in the AAC config and punish there.

iFlamingoz commented 3 years ago

Thresholds don't seem to be executing even when in the AAC config? (tested using default Celebrimbour's optimized configs)

[AACAdditionPro] IFlamingoz [AACAdditionPro] Inventory -> vl 591 [AACAdditionPro] Inventory.parts.Move -> vl 579 [AACAdditionPro] Scaffold -> vl 483

Janmm14 commented 3 years ago

I think theres a maximum vl AAC 5 allows per check which also applies to plugins using AAC's api.

iFlamingoz commented 3 years ago

Those checks are supposed to execute at 120 vl.

iFlamingoz commented 2 years ago

Versions 6.5.3 and below do not seem to have this issue. The only check that seems to run thresholds is the Pingspoof check.

Photon-GitHub commented 2 years ago

Indeed, version 7 unified the module system. Before, Sentinel was not hooked into AAC and used a different system compared to the regular checks. This was one of the motivators of version 7, in which modules are much easier to add.

iFlamingoz commented 2 years ago

Indeed, version 7 unified the module system. Before, Sentinel was not hooked into AAC and used a different system compared to the regular checks. This was one of the motivators of version 7, in which modules are much easier to add.

Yes, however, aren't checks like Inventory move supposed to run thresholds from the AAC config and be displayed in a players AAC status message?

6.5.3: image

7.1.2: image

Photon-GitHub commented 2 years ago

That is indeed a bug if you enabled the hook in the config.

iFlamingoz commented 2 years ago

That is indeed a bug if you enabled the hook in the config.

Yes, the hook is enabled and the only check (out of the ones I have tested) that seem to run thresholds and show up in peoples AAC status messages is the PingSpoof check.

Photon-GitHub commented 2 years ago

@iFlamingoz could you please pm me your AAC and AACAdditionPro configs? (On Discord / Spigot)

iFlamingoz commented 2 years ago

@iFlamingoz could you please pm me your AAC and AACAdditionPro configs? (On Discord / Spigot)

Done (on discord)

Photon-GitHub commented 2 years ago

AAC Hook has been removed in 8.0.0 as AAC is no longer maintained.