mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Lots of mobs in one area can cause players to move to fast in water.
This commit is contained in:
1 parent
fbe417426f
commit
b08ae8e60b
1 file changed
+1
-1
@@ -211,7 +211,7 @@ public class PlayerListener implements Listener {
|
||||
if(!player.hasPermission("anticheat.waterwalk"))
|
||||
{
|
||||
//Otherwise check for normal walking speeds, making sure they aren't using 'jesus' hacks
|
||||
if(!player.isSprinting() && !player.isFlying())
|
||||
if(!player.isSprinting() && !player.isFlying() && player.getNearbyEntities(1, 1, 1).isEmpty())
|
||||
{
|
||||
tracker.increaseLevel(player,2);
|
||||
plugin.log(player.getName()+" is walking too fast in water! XSpeed="+xd+" ZSpeed="+zd);
|
||||
|
||||
Reference in new issue
Block a user