Only start WorldSaving in server-mode.
Signed-off-by: Chris Sanders <zidane@outlook.com>
WorldSaving/World unloads now in server-mode.
Signed-off-by: Chris Sanders <zidane@outlook.com>
Throw exception in client-mode when chunks save.

This will show us where the extent of saving is (and harden it further to
server-mode).
Signed-off-by: Chris Sanders <zidane@outlook.com>
Lock down WorldSavingThread to server mode.
Signed-off-by: Chris Sanders <zidane@outlook.com>
Only create world files in server mode
Signed-off-by: Chris Sanders <zidane@outlook.com>
Remove these from being final
Signed-off-by: Chris Sanders <zidane@outlook.com>
Set these final once again
Signed-off-by: Chris Sanders <zidane@outlook.com>
Partial fix for region files - RegionGenerator.java still not done
Change how the client handles the world and player

- Server sends a worldChanged to the Client
- Client constructs new SpoutClientWorld, deserializes datatable
- Server sends AddEntityMessage
- Client adds new entity to its' world, creates a new SpoutClientPlayer if
  the player joining the world is the client player. There is only one
  entity that has the -1 ID and that is the client player
- Override a few methods in SpoutClientWorld, throw
  UnsupportedOperationExceptions to let us see what the client is trying
  to do when it shouldn't.
Signed-off-by: Chris Sanders <zidane@outlook.com>
Client player gets a camera
Signed-off-by: Chris Sanders <zidane@outlook.com>
On second thought, create client player on session

The client should always be connected to a server of sorts
Signed-off-by: Chris Sanders <zidane@outlook.com>
Make connecting to a server the first thing the client does

Signed-off-by: Jack Huey kitskub@gmail.com
Turn off region generator
Signed-off-by: Chris Sanders <zidane@outlook.com>
Forgot UUID here
Signed-off-by: Chris Sanders <zidane@outlook.com>
Merge branch 'client-connection' of github.com:kitskub/Spout into client-connection

Signed-off-by: Chris Sanders <zidane@outlook.com>

Conflicts:
	src/main/java/org/spout/engine/protocol/builtin/SpoutEntityProtocol.java
Separate SpoutWorld into SpoutWorld and SpoutServerWorld

Move some stuff from SpoutEngine to SpoutServer

Signed-off-by: Jack Huey kitskub@gmail.com
More separation of server from engine

Client starts
Working on protocol
Merge pull request #2210 from kitskub/client-connection

Large changes
Fix my session pulsing error from last PR

Fix tp command
Fix the variable naming in LoginMessage to reflect what it actually is
Changed NOTSPAWNEDID to be -999 because -1 was/is being used as a player id (this needs polishing)
Refactored start(boolean) in SpoutEngine to just start()

Signed-off-by: Jack Huey kitskub@gmail.com
Merge pull request #2211 from kitskub/client-connection

Numerous fixes and such