# /gimport - Import existing worlds

<span style="white-space: pre-wrap;">Do you already have a world from another server or from single player? With </span>`<span class="editor-theme-code">/gimport</span>`<span style="white-space: pre-wrap;"> you can import it into the GWorld system. </span>

## Preparation

1. Stop the server (recommended, but not mandatory).
2. <span style="white-space: pre-wrap;">Copy your world folder to the root directory of your server (where </span>`<span class="editor-theme-code">server.properties</span>`<span style="white-space: pre-wrap;"> is located). </span>

<p class="callout warning">**Important:**<span style="white-space: pre-wrap;"> The folder must not contain any spaces!</span>  
<span style="white-space: pre-wrap;">❌ </span>`<span class="editor-theme-code">My awesome world</span>`  
<span style="white-space: pre-wrap;">✅ </span>`<span class="editor-theme-code">My_awesome_world</span>`</p>

## The command

`<span class="editor-theme-code">/gimport <FolderName> <Environment> [Generator]</span>`

### Parameters explained

1. **FolderName (required):**<span style="white-space: pre-wrap;"></span>
    - Must match the folder name exactly.
2. **Environment (required):**<span style="white-space: pre-wrap;"></span>
    - Helps GWorld assign the correct type (e.g., for ceiling height in the Nether). This argument must be specified.
3. **Generator (optional):** 
    - Must be specified if the world was created with a generator.
    
    <p class="callout danger">To use a generator, you must have the appropriate plugin installed!</p>

## Example

<span style="white-space: pre-wrap;">You have uploaded a folder named </span>`<span class="editor-theme-code">Lobby_Backup</span>`<span style="white-space: pre-wrap;">. </span>

1. Execute the command:```bash
    /gimport Lobby_Backup NORMAL
    ```
2. GWorld recognizes the files (`<span class="editor-theme-code">level.dat</span>`, region files).
3. The world is registered and loaded immediately.
4. <span style="white-space: pre-wrap;">You can now teleport there: </span>`<span class="editor-theme-code">/gtp Lobby_Backup</span>`.

<p class="callout info">**Note about the database:**<span style="white-space: pre-wrap;"> If you have MySQL enabled, the imported world is automatically entered into the database and is also available on other servers after a restart (provided the files are also located there or are synchronized). </span></p>