Hello i am developing an anti-cheat and i found something out.
Most of the time with the hack step (makes you walk up a block like a slab) this value comes: 0.4200000000000017
So i made this:
@EventHandler
void StepCheck(PlayerMoveEvent e) {
Player p = e.getPlayer();
double y = e.getTo().getY() - e.getFrom().getY();
if(y == 0.4200000000000017) {
p.teleport(e.getFrom());
p.sendMessage("You got deteceted for step.");
}
}
It is working great.
You may implement this in the sentiel code or edit it a bit.
Hope this helps!
Most of the time with the hack step (makes you walk up a block like a slab) this value comes: 0.4200000000000017
So i made this:
@EventHandler
void StepCheck(PlayerMoveEvent e) {
Player p = e.getPlayer();
double y = e.getTo().getY() - e.getFrom().getY();
if(y == 0.4200000000000017) {
p.teleport(e.getFrom());
p.sendMessage("You got deteceted for step.");
}
}
It is working great.
You may implement this in the sentiel code or edit it a bit.
Hope this helps!