Jump to content

[1.8] Anti-cheats checks disabled


SCAREX

Recommended Posts

It could be great if there were an option in the server.properties file to disable some anti-cheats checks, example :

 

(the code is from NetHandlerPlayServer.class)

 

if(*boolean*) //*boolean* is the boolean from the server.properties file

if (!this.hasMoved)

                {

                    return;

                }

 

                double d11 = d8 - this.playerEntity.posX;

                double d12 = d9 - this.playerEntity.posY;

                double d13 = d10 - this.playerEntity.posZ;

                //BUGFIX: min -> max, grabs the highest distance

                double d14 = Math.max(Math.abs(d11), Math.abs(this.playerEntity.motionX));

                double d15 = Math.max(Math.abs(d12), Math.abs(this.playerEntity.motionY));

                double d16 = Math.max(Math.abs(d13), Math.abs(this.playerEntity.motionZ));

                double d17 = d14 * d14 + d15 * d15 + d16 * d16;

 

                if (d17 > 100.0D && (!this.serverController.isSinglePlayer() || !this.serverController.getServerOwner().equals(this.playerEntity.getName())))

                {

                    logger.warn(this.playerEntity.getName() + " moved too quickly! " + d11 + "," + d12 + "," + d13 + " (" + d14 + ", " + d15 + ", " + d16 + ")");

                    this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, this.playerEntity.rotationYaw, this.playerEntity.rotationPitch);

                    return;

                }

}

 

Because currently my server has a lot of "[Player] move to quickly..." but this check is useless because it will be a friends-only server.

 

(sorry if my english is bad)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.