mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Re-add logging-only animation method
This commit is contained in:
1 parent
3a746ef45e
commit
b1498140ba
1 file changed
+7
-3
@@ -842,9 +842,7 @@ public class Backend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public CheckResult checkFastAnimation(final Player player) {
|
public CheckResult checkFastAnimation(final Player player) {
|
||||||
animated.put(player.getName(), System.currentTimeMillis());
|
logAnimation(player);
|
||||||
increment(player, blockPunches, magic.BLOCK_PUNCH_MIN);
|
|
||||||
itemInHand.put(player.getName(), player.getItemInHand().getType());
|
|
||||||
|
|
||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
int clicks = animations.containsKey(name) ? animations.get(name) + 1 : 1;
|
int clicks = animations.containsKey(name) ? animations.get(name) + 1 : 1;
|
||||||
@@ -861,6 +859,12 @@ public class Backend {
|
|||||||
return PASS;
|
return PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void logAnimation(final Player player) {
|
||||||
|
animated.put(player.getName(), System.currentTimeMillis());
|
||||||
|
increment(player, blockPunches, magic.BLOCK_PUNCH_MIN);
|
||||||
|
itemInHand.put(player.getName(), player.getItemInHand().getType());
|
||||||
|
}
|
||||||
|
|
||||||
public void clearChatLevel(Player player) {
|
public void clearChatLevel(Player player) {
|
||||||
chatLevel.remove(player.getName());
|
chatLevel.remove(player.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user