chatprogramm was sonst
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
579 B

1 year ago
  1. package server;
  2. import server.log.EventLogger;
  3. import server.net.ChatServer;
  4. import server.util.ServerBuilder;
  5. public class Main {
  6. public static EventLogger console;
  7. public static void main(String[] args) {
  8. console = new EventLogger(System.out);
  9. ChatServer server = ServerBuilder.buildServerFromConsoleArgs(args);
  10. if (server == null) {
  11. console.info("Didn't initialize ChatServer!");
  12. console.close();
  13. return;
  14. }
  15. //Start the Server
  16. server.start();
  17. //console.close();
  18. }
  19. }