mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Ignore stats hooks result of oncheckFailure.
This commit is contained in:
parent
e3be45b986
commit
76dd563271
@ -167,7 +167,7 @@ public final class NCPHookManager {
|
||||
for (int i = 0; i < hooks.size(); i++) {
|
||||
final NCPHook hook = hooks.get(i);
|
||||
try {
|
||||
if (hook.onCheckFailure(checkType, player, info))
|
||||
if (hook.onCheckFailure(checkType, player, info) && !(hook instanceof IStats))
|
||||
return true;
|
||||
} catch (final Throwable t) {
|
||||
// TODO: maybe distinguish some exceptions here (interrupted ?).
|
||||
|
Loading…
Reference in New Issue
Block a user