mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Add developer mode, other small fixes
This commit is contained in:
1 parent
cb1959d2c0
commit
8d13e964ae
6 files changed
+39
-17
No files matched your search
@@ -274,9 +274,10 @@ public class Backend {
|
||||
nofallViolation.put(name, nofallViolation.get(player.getName()) + 1);
|
||||
}
|
||||
|
||||
if (nofallViolation.get(name) >= magic.NOFALL_LIMIT) {
|
||||
int i = nofallViolation.get(name);
|
||||
if (i >= magic.NOFALL_LIMIT) {
|
||||
nofallViolation.put(player.getName(), 1);
|
||||
return new CheckResult(Result.FAILED, player.getName()+" tried to avoid fall damage (fall distance = 0 "+nofallViolation.get(name)+" times in a row, max=+"+magic.NOFALL_LIMIT+")");
|
||||
return new CheckResult(Result.FAILED, player.getName()+" tried to avoid fall damage (fall distance = 0 "+i+" times in a row, max="+magic.NOFALL_LIMIT+")");
|
||||
} else {
|
||||
return PASS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user