This method will scan all players in your area, if its a mod or admin you stop. No chat first, nothin, just good old anti-ban. Tested and works. Heres the method.
Put that in your Methods class source.
Also Find this and make a quick edit
- Code:
public void antiBan() {
for(int playerss = 0; playerss <= playerCount(); playerss++) {
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 Staff!");
printMessage("@whi@[@lre@AntiBan@whi@]@gre@ Stopping Bot!");
stop();
}
}
}
Put that in your Methods class source.
Also Find this and make a quick edit
- Code:
public void stop() { mc.stopMacro(); }
- Code:
public void stop() { mc.stopMacro(); mc.OCRThread.stop(); }