Skip to content

Game Configuration

Steffen Wonning edited this page Jul 14, 2025 · 1 revision

⚙️ Game Configuration

Bounce can be configured either via code or using a config.properties file inside the config/ directory. This allows flexibility for both developers and server hosts.

If a config.properties file is present, it overrides the default settings defined in code.


📄 config.properties File

Place this file inside the /config folder of your server directory.

🔍 Allowed Properties

The following properties can be defined in the config.properties file. They control how the game behaves on your server. Each property is optional — if omitted, a default value will be used.

Property Type Description Default Constraints / Notes
minPlayers int Minimum number of players required to start a game 2 Must be ≥ 2
maxPlayers int Maximum number of players allowed in a game 8 Should be ≥ minPlayers
lobbyTime int Lobby countdown before game starts (in seconds) 30 Must be > GameConfig.FORCE_START_TIME
gameTime int Maximum duration of a game round (in seconds) 300 Game ends when this time is reached

✅ Example config.properties

Here is a sample configuration file showing the essential settings to run the game:

minPlayers=2
maxPlayers=8
lobbyTime=30
gameTime=300

Note

If your configuration doesn't include some of the properties shown above, it will not break the parsing process. In such cases, the default values from the InternalGameConfig class will be used instead.

⚠️ Validation Rules

Some values have validation rules to prevent issues:

Clone this wiki locally