⚙️Configuration

Configuration

Config.yml File

The config.yml file contains settings for the plugin. Below are the options available:

Round Finish Commands

round-finish-commands specifies the commands that will be executed when a round is finished. You can use the player placeholder %player% in the commands.

Example:

round-finish-commands:
  winners:
    - eco add %player% 10
  losers:
    - eco add %player% 5

Arena Finish Commands

arena-finish-commands specifies the commands that will be executed when an arena game is finished. You can use the winner placeholder %winner% in the command.

Example:

arena-finish-commands:
  - eco add %winner% 1000

Times To Broadcast

timesToBroadcast specifies the countdown times when a broadcast message will be sent to the players. You can customize the countdown times to your preference.

Example:

timesToBroadcast:
  - 50
  - 40
  - 30
  - 20
  - 15
  - 10
  - 5
  - 4
  - 3
  - 2
  - 1

Start Message

startMessage specifies the message that will be displayed when the game starts. You can customize the message to your preference.

Example:

startMessage:
  - "&b================&cCapture The Flag&b================"
  - "                    &6&lCapture The Flag        "
  - "   &6Your goal is to capture the enemy's flag and bring it back to your base!        "
  - " &6&lDefend your flag while preventing the enemy from capturing yours!        "
  - "&b================&cCapture The Flag&b================"

Bungee Mode

bungee-mode controls the behavior of players when they join and leave CaptureTheFlag in Bungee Mode. You can configure whether players instantly join CaptureTheFlag, are unable to leave CaptureTheFlag, and specify the lobby server name.

Example:

bungee-mode:
  enabled: false
  lobby-server: "lobby" # The name of your lobby server.
  enter-arena-instantly: false # Only enable this if you only have one arena, it will let players enter that arena directly.
  restart-command: "restart" # Your server will be automatically restarted after an arena ends if "enter-arena-instantly" is set to true.

Delay Settings

delay specifies the delay settings between starting a new round and teleporting back to the global lobby after a game. You can configure the delay for both situations.

Example:

delay:
  new-round: 3
  after-game: 5

Global Lobby Option

global-lobby determines whether the global lobby is enabled or disabled. If set to false, players will instantly leave the CaptureTheFlag mode when they want to leave an arena, and they won't be able to join it as well if this is disabled.

Example:

global-lobby: true

Last updated