Made ServerGui usable and prepared for 3.0
This commit is contained in:
@@ -6,13 +6,13 @@ import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
import java.net.Socket;
|
||||
|
||||
import data.ServerData;
|
||||
import scenes.LogScene;
|
||||
|
||||
public class ServerThread
|
||||
implements Runnable {
|
||||
|
||||
private final int PORT = 9999;
|
||||
public static float version = -1.0f;
|
||||
|
||||
LogScene display;
|
||||
|
||||
@@ -36,10 +36,10 @@ implements Runnable {
|
||||
out = new DataOutputStream(s.getOutputStream());
|
||||
in = new DataInputStream(s.getInputStream());
|
||||
String data = in.readUTF();
|
||||
display.appendText(data);
|
||||
display.appendText(data, data.split(";")[0]);
|
||||
System.out.println(data);
|
||||
|
||||
out.writeUTF("VERSION="+version);
|
||||
out.writeUTF("VERSION="+ServerData.version);
|
||||
|
||||
out.close();
|
||||
in.close();
|
||||
|
||||
Reference in New Issue
Block a user