[This is preliminary documentation and is subject to change.]
Creates a new world and adds it to the current list of worlds being managed by WorldManager.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
Parameters
- player
- Player
Player who is adding the world. May be null.
- name
- String
Name of the world being added. May NOT be null.
- map
- Map
Map to assign to the newly created world. May be null.
- preload
- Boolean
Whether or not the map should be preloaded.
Return Value
Newly-created world.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If name is null. |
| fCraft..::..WorldOpException | If world name was invalid, a world with this name already exists, or if an event callback cancelled the addition. |