Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit fc96cb6

Browse files
committed
Brutefore retry
1 parent 3bde9e2 commit fc96cb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/net/olympiccode/vhackos/api/entities/impl/BruteForceImpl.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@ public boolean remove() {
4242
}
4343
return false;
4444
}
45+
46+
public boolean retry() {
47+
JSONObject obj = Route.Tasks.REMOVE_BRUTE.compile(api, "10005", String.valueOf(id)).getResponse().getJSON();
48+
if (obj.optInt("bruteretry", 0) == 1) {
49+
api.getTaskManager().reloadTasks();
50+
return true;
51+
}
52+
return false;
53+
}
4554
}

0 commit comments

Comments
 (0)