mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
It's THEM.
This commit is contained in:
parent
39e2a86472
commit
d473f19247
@ -131,9 +131,9 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
// TODO: reset the bounding box of the player ?
|
// TODO: reset the bounding box of the player ?
|
||||||
if (MovingConfig.getConfig(player).tempKickIllegal) {
|
if (MovingConfig.getConfig(player).tempKickIllegal) {
|
||||||
NCPAPIProvider.getNoCheatPlusAPI().denyLogin(player.getName(), 24L * 60L * 60L * 1000L);
|
NCPAPIProvider.getNoCheatPlusAPI().denyLogin(player.getName(), 24L * 60L * 60L * 1000L);
|
||||||
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + " deny login for 24 hours");
|
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + ", kicking them and deny login for 24 hours");
|
||||||
} else {
|
} else {
|
||||||
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + ", kicking he player.");
|
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + ", kicking them.");
|
||||||
}
|
}
|
||||||
CheckUtils.kickIllegalMove(player);
|
CheckUtils.kickIllegalMove(player);
|
||||||
}
|
}
|
||||||
@ -416,6 +416,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
newTo.setPitch(LocUtil.correctPitch(newTo.getPitch()));
|
newTo.setPitch(LocUtil.correctPitch(newTo.getPitch()));
|
||||||
}
|
}
|
||||||
// Set.
|
// Set.
|
||||||
|
// TODO: Reset positions? enforceLocation?
|
||||||
event.setTo(newTo);
|
event.setTo(newTo);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user