Server now sends time to clients periodically

This commit is contained in:
Light2
2013-07-08 13:39:26 +02:00
parent 9e8eea30a1
commit 323ce803eb
3 changed files with 57 additions and 4 deletions
+2 -2
View File
@@ -39,12 +39,12 @@ public class ServerTimeMessage extends SWGMessage {
}
public IoBuffer serialize() {
IoBuffer result = IoBuffer.allocate(20).order(ByteOrder.LITTLE_ENDIAN);;
IoBuffer result = IoBuffer.allocate(14).order(ByteOrder.LITTLE_ENDIAN);;
result.putShort((short)2);
result.putInt(0x2EBC3BD9);
result.putLong(time); //time in milliseconds
return result;
return result.flip();
}
}