# How to host a game

{% hint style="warning" %}
Permission: elytraracing.host
{% endhint %}

{% hint style="info" %}
More informations [here](https://chooseit.gitbook.io/elytraracing/commands/command-erhost)
{% endhint %}

### 1. Available maps

First of all we have to look at the maps that are available to be hosted.

{% hint style="info" %}
"/erhost listmaps"

Display the list of available maps
{% endhint %}

### 2. Create a host

Create your host using this command

{% hint style="info" %}
"/erhost create \<game\_nam&#x65;*>* \<max\_player> \<maps>

* You can create a Racemode by giving one map name in the \<maps> argument
* You can create a Grandprix by giving multiple maps name in the \<map> argument **(map1,map2,map3....)**
  {% endhint %}

### 3. Alert the server

Let all the server know that your game is available

{% hint style="info" %}
"/erhost alert"&#x20;
{% endhint %}

### 4. Start the game

{% hint style="info" %}
"/erhost start"

As an host, start your game
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chooseit.gitbook.io/elytraracing/tutorials/create-game/how-to-host-a-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
