mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 10:21:22 +01:00
Add blocking to debug output, add server-side velocity last.
This commit is contained in:
parent
4db6036a83
commit
a1ee0a43d4
@ -206,14 +206,19 @@ public class DebugUtil {
|
||||
// TODO: Check backwards compatibility (1.4.2). Remove try-catch
|
||||
builder.append("\n(walkspeed=" + player.getWalkSpeed() + " flyspeed=" + player.getFlySpeed() + ")");
|
||||
} catch (Throwable t){}
|
||||
final Vector v = player.getVelocity();
|
||||
builder.append("(svel=" + v.getX() + "," + v.getY() + "," + v.getZ() + ")");
|
||||
if (player.isSprinting()){
|
||||
builder.append("(sprinting)");
|
||||
}
|
||||
if (player.isSneaking()){
|
||||
builder.append("(sneaking)");
|
||||
}
|
||||
if (player.isBlocking()) {
|
||||
builder.append("(blocking)");
|
||||
}
|
||||
final Vector v = player.getVelocity();
|
||||
if (v.lengthSquared() > 0.0) {
|
||||
builder.append("(svel=" + v.getX() + "," + v.getY() + "," + v.getZ() + ")");
|
||||
}
|
||||
}
|
||||
if (speed != Double.NEGATIVE_INFINITY){
|
||||
builder.append("(e_speed=" + (speed + 1) + ")");
|
||||
|
Loading…
Reference in New Issue
Block a user