mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
Its finished
This commit is contained in:
@@ -153,14 +153,14 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
String randString = StringUtils.randomString(10);
|
String randString = StringUtils.randomString(10);
|
||||||
boolean search = true;
|
boolean search = true;
|
||||||
boolean duplicate = false;
|
boolean duplicate = false;
|
||||||
while(search == true){
|
while (search == true) {
|
||||||
for (File f : Directories.getScreenshotDir().listFiles()){
|
for (File f : Directories.getScreenshotDir().listFiles()) {
|
||||||
if (f.getAbsoluteFile().getName().contains(randString)) {
|
if (f.getAbsoluteFile().getName().contains(randString)) {
|
||||||
duplicate = true;
|
duplicate = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!duplicate){
|
if (!duplicate) {
|
||||||
search = false;
|
search = false;
|
||||||
} else {
|
} else {
|
||||||
randString = StringUtils.randomString(10);
|
randString = StringUtils.randomString(10);
|
||||||
|
|||||||
Reference in New Issue
Block a user