Include host argument

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 3 years ago
parent 71c522b26b
commit c854a43f7a
  1. 6
      sigPlace.java

@ -100,6 +100,7 @@ public class sigPlace {
public static void main(String[] args) {
final Color SDVX_UI_COL = new Color(48,48,48);
if (args.length>0&&args[0].equals("arcade")) {
if (args.length>1) {
try {
Robot r = new Robot();
Reader lastReader = null;
@ -135,7 +136,7 @@ public class sigPlace {
}
if (matches>=EXPECTED_MATCHES&&!submitted) {
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) {
playSound(Paths.get("ding.wav"));
System.out.println("Successful!");
@ -152,6 +153,9 @@ public class sigPlace {
} catch (AWTException | InterruptedException | IOException | FailedResponseException e) {
e.printStackTrace();
}
} else {
System.out.println("You must include a host in the arguments!");
}
} else {
populateDatabase();
/*String fontName = "sdvx_EXScore";

Loading…
Cancel
Save