10-28-2011, 11:29 AM
I haven't added any multiworld support to MCServer but I've thought about how to do it.
I really don't think it's hard to do. In the GetWorld function add the world name as a parameter so you can grab any world you want. Each world should have a separate thread and should pretty much be isolated from the other worlds. When a player wants to go to a different world, you simply remove the player from one world and add it to the other (it requires some special treatment though, special packets need to be sent etc.)
I really don't think it's hard to do. In the GetWorld function add the world name as a parameter so you can grab any world you want. Each world should have a separate thread and should pretty much be isolated from the other worlds. When a player wants to go to a different world, you simply remove the player from one world and add it to the other (it requires some special treatment though, special packets need to be sent etc.)