Browse Source

„src/xyz/nextn/Main.java“ ändern

master
Tobias Link 1 year ago
parent
commit
5feaa7442f
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/xyz/nextn/Main.java

+ 10
- 2
src/xyz/nextn/Main.java View File

@@ -3,9 +3,17 @@ package xyz.nextn;
public class Main {

public static void main(String[] args) {
Server server = new Server(1111);
new Thread((Runnable) server).start();
System.out.println("i kau nixx!!");
try {
Thread.sleep(20 * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Stopping Server");
server.stop();

Server server = new Server();
server.start(1111);

}
}

Loading…
Cancel
Save