@@ -0,0 +1,1232 @@
+package com.daexsys.sbc.net;%0A%0Aimport com.daexsys.ijen3D.net.server.Connection;%0Aimport com.daexsys.sbc.entity.Player;%0Aimport com.daexsys.sbc.net.server.SendChunkPacket;%0Aimport com.daexsys.sbc.world.chunk.Chunk;%0A%0Aimport java.io.DataInputStream;%0Aimport java.io.DataOutputStream;%0Aimport java.io.IOException;%0Aimport java.net.Socket;%0A%0Apublic class SBGConnection extends Connection %7B%0A    private Player player;%0A%0A    public SBGConnection(Socket socket) %7B%0A        super(socket);%0A    %7D%0A%0A    public void handlePacket(byte id, DataInputStream dataInputStream) throws IOException %7B%0A        if(id == 120) %7B%0A            // Get the coordinates of the chunk that the client wants.%0A            int x = dataInputStream.readInt();%0A            int y = dataInputStream.readInt();%0A            int z = dataInputStream.readInt();%0A%0A            DataOutputStream dataOutputStream = getDataOutputStream();%0A%0A            // Get chunk (temporarily just from 0,0,0).%0A            Chunk chunkToSend = SBGServer.getUniverse().getPlanetAt(0, 0, 0).getChunk(x, y, z);%0A%0A            // Encode and send the chunk.%0A            new SendChunkPacket(chunkToSend).write(dataOutputStream);%0A        %7D%0A    %7D%0A%0A    public void loadPlayer() %7B%0A//        player = new Player();%0A    %7D%0A%7D%0A

Add SBGConnection