# "OneGame" server

{% hint style="danger" %}
This feature is experimental, if you have any problems please contact me on my discord
{% endhint %}

## What is OneGame system ?

OneGame system makes your server running only 1 game of ElytraRacing.

&#x20;This system could be associated with a BungeeCord mode.&#x20;

When a player will join the server, it will automatically put the player in a game. When a player leaves the server/ the game is ended. The player will be kicked from the server/ teleported in another server.

## 1. Requirements

#### Create an AutoGame&#x20;

This AutoGame is the game that will be used and restarted at the end of each games. More information [here](https://chooseit.gitbook.io/elytraracing/tutorials/create-game/how-to-use-autogames).

#### (Optional) Have a "lobby" server (BungeeCord)

This server will be the server where the player will be teleported after the game .

## 2. Configuration

The configuration is done in the file "Config.json"

{% hint style="success" %}
Set ONEGAME to true
{% endhint %}

| Variables                           | Description                                                                        |
| ----------------------------------- | ---------------------------------------------------------------------------------- |
| ONEGAME\_AUTOJOINGAME               | Name of the AutoGame                                                               |
| ONEGAME\_KICK\_AFTER\_GAME          | Will the player be kicked from the server after the game/(leave)                   |
| ONEGAME\_LOBBYSERVER                | Name of the "lobby" server                                                         |
| ONEGAME\_REMOVEJOINQUITMESSAGES     | Will the join messages be displayed                                                |
| ONEGAME\_MOTD\_USE                  | This feature provide MOTD customization                                            |
| ONEGAME\_MOTD                       | MOTD content customization                                                         |
| ONEGAME\_MOTD\_CHANGE\_MAX\_PLAYERS | Will the MOTD max player will be changed according to the max players of the game. |


---

# 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/onegame-server.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.
