Like Khal said wouldn't recommend doing that in the onMessage. But an alternative to walk a tile that short of a distance you can also just directly interact with the tile
new Position(0, 0, 0).interact(getBot(), "Walk here");
Mhmm you could try this, maybe it will work?
java -Duser.home="C:\Users\Testing" -jar "osbot 2.6.53.jar"
Replace "Testing" with your desired window user.
And if you have one drive installed could also try uninstalling it, I know that has caused issues in the past.
Some shit like this I guess
private void mineRocks() {
final RS2Object mineRock = getRock(null);
final RS2Object hoverRock = getRock(mineRock);
}
private RS2Object getRock(final RS2Object ignoreRock) {
//Just add this condition to your filter to get the next rock basically
// r != ignoreRock
return getObjects().closest(r -> r.getId() == 0 && r != ignoreRock);
}
They're too busy with V3 I guess to do anything. I believe improving the bans was on the list of things they wanted to do. But yeah, this injection is absolutely horrible for current standards. And saying it's because it's injection is just plain out not true.