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
26 lines
579 B
package server;
|
|
|
|
import server.log.EventLogger;
|
|
import server.net.ChatServer;
|
|
import server.util.ServerBuilder;
|
|
|
|
public class Main {
|
|
|
|
public static EventLogger console;
|
|
|
|
public static void main(String[] args) {
|
|
console = new EventLogger(System.out);
|
|
ChatServer server = ServerBuilder.buildServerFromConsoleArgs(args);
|
|
|
|
if (server == null) {
|
|
console.info("Didn't initialize ChatServer!");
|
|
console.close();
|
|
return;
|
|
}
|
|
|
|
//Start the Server
|
|
server.start();
|
|
|
|
//console.close();
|
|
}
|
|
}
|