mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Sprint hack blocker
This commit is contained in:
1 parent
1c685488f6
commit
aa3796438e
1 file changed
+7
@@ -261,6 +261,13 @@ public class PlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(player.getFoodLevel() <= 6)
|
||||||
|
{
|
||||||
|
player.setSprinting(false);
|
||||||
|
tracker.increaseLevel(player,2);
|
||||||
|
plugin.log(player.getName()+" tried to sprint while hungry! ");
|
||||||
|
event.setTo(event.getFrom().clone());
|
||||||
|
}
|
||||||
//If they are sprinting or flying give slack
|
//If they are sprinting or flying give slack
|
||||||
if(xd > 0.7D || zd > 0.7D)
|
if(xd > 0.7D || zd > 0.7D)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user