BungeeCord mode¶
Screaming BedWars supports a BungeeCord mode, which allows for single-arena servers with arena autojoin. This document provides instructions on how to configure this mode.
Velocity Support
This mode is also compatible with Velocity. Ensure bungee-plugin-message-channel
is enabled in the velocity.toml
file on your proxy.
Configuring Game Servers¶
To enable BungeeCord mode, locate the bungee
section in config.yml
and set enabled
to true
. Then, configure each option according to your requirements:
serverRestart
- Determines whether the server should restart after the game ends. This is not mandatory for the plugin; adjust this setting as needed. To enable server restarts, an existing startup script (.sh
or.bat
) must be defined inspigot.yml
.serverStop
- Similar toserverRestart
, but only shuts down the server. Use this only if you have separate software managing automatic server startup.server
- Specifies the hub server to which players are moved after the game ends.auto-game-connect
- Determines whether users should automatically join the BedWars game upon server join. This should typically be enabled unless managed by an addon.kick-when-proxy-too-slow
- If the proxy fails to move the player to the hub server or is too slow, the server will kick players who are waiting for too long.random-game-selection
- Enables random selection of arenas if multiple arenas are on the same server. Setenabled
totrue
to use this feature. Thepreselect-games
option is useful for knowing the next selected game before any player joins (at server startup or after the previous game ends).motd
- Useful for server selection plugins utilizing MOTD text, such as BungeeSigns. If enabled, the plugin will update the MOTD based on the current state and player count. There are five states:waiting
,waiting_full
,running
,rebuilding
, anddisabled
. Use the placeholders%name%
for arena name,%current%
for current player count, and%max%
for maximum player count. Messages can be colored using legacy color codes (ยง<color code>
).
The configuration section might look like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Configuring Hub Servers¶
While there is no lobby plugin for Screaming BedWars, any server selection plugin can be used, such as BungeeSigns. Plugins that can read MOTD are preferred as they can relay the game state to your hub server.
If you prefer to use inventory-based GUIs instead of signs and wish to display information from the server's MOTD, you can utilize any inventory plugin compatible with PlaceholderAPI, such as DeluxeMenus. The Pinger expansion is recommended, as it provides the necessary placeholders for this purpose. To create a server selector using DeluxeMenus, you may refer to this guide and review this example.
Synchronizing Statistics
For BungeeCord networks, it is common to synchronize statistics to a database. Configure the database
section as described here. Ensure all servers are connected to the same database.
To access statistics in the lobby, the simplest option is to install Screaming BedWars on your hub server as well. Ensure this instance is NOT in BungeeCord mode. Alternatively, you can create an addon to retrieve statistics. The database structure is detailed at the end of the database configuration section.