Include host argument
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
71c522b26b
commit
c854a43f7a
@ -100,6 +100,7 @@ public class sigPlace {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final Color SDVX_UI_COL = new Color(48,48,48);
|
final Color SDVX_UI_COL = new Color(48,48,48);
|
||||||
if (args.length>0&&args[0].equals("arcade")) {
|
if (args.length>0&&args[0].equals("arcade")) {
|
||||||
|
if (args.length>1) {
|
||||||
try {
|
try {
|
||||||
Robot r = new Robot();
|
Robot r = new Robot();
|
||||||
Reader lastReader = null;
|
Reader lastReader = null;
|
||||||
@ -135,7 +136,7 @@ public class sigPlace {
|
|||||||
}
|
}
|
||||||
if (matches>=EXPECTED_MATCHES&&!submitted) {
|
if (matches>=EXPECTED_MATCHES&&!submitted) {
|
||||||
System.out.println("Data is reasonable, prepare for submitting...");
|
System.out.println("Data is reasonable, prepare for submitting...");
|
||||||
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",temp);
|
POSTRequest postRes = new POSTRequest("http://"+args[1]+"/uploadform.html",temp);
|
||||||
if (((HttpResponse<String>)postRes.run()).statusCode()==200) {
|
if (((HttpResponse<String>)postRes.run()).statusCode()==200) {
|
||||||
playSound(Paths.get("ding.wav"));
|
playSound(Paths.get("ding.wav"));
|
||||||
System.out.println("Successful!");
|
System.out.println("Successful!");
|
||||||
@ -152,6 +153,9 @@ public class sigPlace {
|
|||||||
} catch (AWTException | InterruptedException | IOException | FailedResponseException e) {
|
} catch (AWTException | InterruptedException | IOException | FailedResponseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
System.out.println("You must include a host in the arguments!");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
populateDatabase();
|
populateDatabase();
|
||||||
/*String fontName = "sdvx_EXScore";
|
/*String fontName = "sdvx_EXScore";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user