# World Spawn

CoreEngine remembers an exact world spawn per world including the look direction (Bukkit's built-in world spawn only rounds to whole blocks). It is used by `/spawn`, `/world` and the world shortcuts as soon as no [main spawn](spawn.html) is set.

## Commands

| Command | Syntax | Permission | Default | Description |
|---|---|---|---|---|
| `/setworldspawn` | `/setworldspawn [world]` | `worldspawn.set` | `false` | Sets the exact world spawn of the current or given world at your position |

> **Note:** The command sets the vanilla world spawn and CoreEngine's exact world spawn together; it does not teleport and therefore has no warmup and no cost. In the `/spawn` order the world spawn ranks behind the main spawn. Without an exact world spawn, CoreEngine uses the rounded vanilla spawn.

## Configuration (modules/worldspawn.yml)

```yaml
# Enables or disables the world spawn module.
enabled: true

worldspawn:
  # Registers the /setworldspawn command.
  command-enabled: true
```

## Complete example config

```yaml
enabled: true

worldspawn:
  command-enabled: true
```
