All right Here is an anti cheat client so people cant come on and start noclipping with mopar and stuff like that.
MORE TO BE ADDED SOON!
Anti Noclip
Find your noclip code in client.java
And Replace it with this
Now find where it says *playernames* and rplac it with the player names. And put a comma to seperate the names i think
ANTI CLIENT DROP
Find your client drop command, if yu dont have one then add this below your noclip commands. THIS IS AN AUTOBAN FOR TRYING TO CLIENT DROP!
In the playernames part, you can take that out along with the *'s to make it so no one can client drop.
Replacements for autoban/screenmessedup
Autoban Code: Add this if you want them to be auto banned when they do a command
Screenmessedup Code: This makes the screen move so they cant see their character, and cant log out/move. So they have to restart client.
Hope this helped!
MORE TO BE ADDED SOON!
Anti Noclip
Find your noclip code in client.java
And Replace it with this
Code:
else if (command.equalsIgnoreCase("noclip") && !playerName.equalsIgnoreCase("*playerNames*"))
{
PlayerHandler.messageToAll = (playerName + " tried to noclip! Now they're screen is messed XD");
EntangleDelay = 999999;
frame99(2);
teleblock = true;
frame35(004, 004, 004, 004);
LogoutDelay = 999999;
frame218(1);
frame177(041, 033, 014, 011, 005);
}
Now find where it says *playernames* and rplac it with the player names. And put a comma to seperate the names i think
ANTI CLIENT DROP
Find your client drop command, if yu dont have one then add this below your noclip commands. THIS IS AN AUTOBAN FOR TRYING TO CLIENT DROP!
Code:
else if (command.equalsIgnoreCase("clientdrop") && !playerName.equalsIgnoreCase("*playernames*"))
{
PlayerHandler.messageToAll = (playerName + " tried to clientdrop and has been autobanned!");
appendToBanned(playerName);
disconnected = true;
}
Replacements for autoban/screenmessedup
Autoban Code: Add this if you want them to be auto banned when they do a command
Code:
{
PlayerHandler.messageToAll = (playerName + " tried to Cheat and has been autobanned!");
appendToBanned(playerName);
disconnected = true;
}
Screenmessedup Code: This makes the screen move so they cant see their character, and cant log out/move. So they have to restart client.
Code:
{
PlayerHandler.messageToAll = (playerName + " tried to Cheat! Now they're screen is messed XD");
EntangleDelay = 999999;
frame99(2);
teleblock = true;
frame35(004, 004, 004, 004);
LogoutDelay = 999999;
frame218(1);
frame177(041, 033, 014, 011, 005);
}
Hope this helped!


