mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-03 00:47:25 +02:00
Log tags, if updated after violation handling.
This commit is contained in:
parent
cb62547fc0
commit
c9468cd861
@ -398,8 +398,12 @@ public class SurvivalFly extends Check {
|
||||
// TODO: on ground -> on ground improvements
|
||||
|
||||
// Debug output.
|
||||
final int tagsLength;
|
||||
if (data.debug) {
|
||||
outputDebug(player, to, data, cc, hDistance, hAllowedDistance, hFreedom, yDistance, vAllowedDistance, fromOnGround, resetFrom, toOnGround, resetTo);
|
||||
tagsLength = tags.size();
|
||||
} else {
|
||||
tagsLength = 0; // JIT vs. IDE.
|
||||
}
|
||||
|
||||
// Handle violations.
|
||||
@ -533,6 +537,9 @@ public class SurvivalFly extends Check {
|
||||
data.fromWasReset = resetFrom || data.noFallAssumeGround;
|
||||
data.lastFrictionHorizontal = data.nextFrictionHorizontal;
|
||||
data.lastFrictionVertical = data.nextFrictionVertical;
|
||||
if (data.debug && tags.size() > tagsLength) {
|
||||
logPostViolationTags(player);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1540,4 +1547,8 @@ public class SurvivalFly extends Check {
|
||||
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, builder.toString());
|
||||
}
|
||||
|
||||
private void logPostViolationTags(final Player player) {
|
||||
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, player.getName() + " SurvivalFly Post violation handling tag update:\n" + StringUtil.join(tags, "+"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user