Not gonna explain to much here.
You need to declare a new thread in Client.java and set its priority and set it to run along with a few other things the avid programmer could figure out within 20 mins.
EDIT: You can change the wait interval to whatever youd like
You need to declare a new thread in Client.java and set its priority and set it to run along with a few other things the avid programmer could figure out within 20 mins.
- Code:
import bot.*;
import javax.imageio.ImageIO;
import java.io.File;
import java.io.InputStream;
public class AntiBan extends Methods {
public Client mc;
public AntiBan(Client mc){
super(mc);
this.mc = mc;
System.out.println("AntiBan Started!");
printMessage("@whi@[@lre@AntiBan@whi@]@gre@ AntiBan Started!");
printMessage("@whi@[@lre@AntiBan@whi@]@gre@ AntiBan Handler coded by Sikuma");
}
public void main(String args[]) {
try {
while(true) {
while(playerCount() > 0) {
int playerss = 0;
while(playerss <= playerCount()) {
try {
wait(random(1000,2500));
if(mc.aClass31Array1171[playerss].aString294.equalsIgnoreCase("Mod") || mc.aClass31Array1171[playerss].aString294.equalsIgnoreCase("Pyru") || mc.aClass31Array1171[playerss].aString294.equalsIgnoreCase("Lister")) {
System.out.println("Found Player: "+mc.aClass31Array1171[playerss].aString294);
printMessage("@whi@[@lre@AntiBan@whi@]@red@ Found Moderator!");
printMessage("@whi@[@lre@AntiBan@whi@]@gre@ Stopping Bot!");
stop();
} else {
System.out.println("Player "+mc.aClass31Array1171[playerss].aString294+" : "+mc.aClass31Array1171[playerss].anInt314);
}
playerss++;
}catch(Exception e) {
}
}
}
}
}
catch(Exception e) {
e.printStackTrace();
}
}
}
EDIT: You can change the wait interval to whatever youd like