📜Configuration

API Key

Create an API Key: https://challonge.com/it/settings/developer

Configuration File

settings.yml
# To set up this plugin just create an account on the challonge.com site
# and create a key at the following site: challonge.com/it/settings/developer
# Copy the key and paste it below together with the account name
#
# Permissions and commands can be found on the spigot page!
#
# Logic behind the matches in case one or both players are offline
# at the time of the duel: if only one of the two players is offline,
# the other wins directly, if both are offline, a lot draws a winner
#
settings:
  general:
    # If activated, teleports the player to the "exit" position
    teleport_after_duel: true
    # If activated, it saves the player's inventory before the duel and restores it after the duel
    save_and_restore_inventories: true
    # Require empty inventory before duel
    require_empty_inventory: false
    # If the player quit loses the duel otherwise the duel ends when he dies (recommended default)
    handle_quit: true
    # The integration with placeholder api is automatic, therefore, it is advisable to leave the default value
    hook_in_papi: true

  website:
    credentials:
      # Website username
      username: "Username here"
      # Generate a new API-Key here: https://challonge.com/it/settings/developer
      key: "API Key here"
    live_update: true

  messages:
    opponent_offline:
      # %player% Name of the player involved (winner)
      - "§cThe opponent is offline! %player% won by forfeit."
    both_opponents_offline:
      # %player% Name of the player involved (winner)
      - "§cBoth players are offline. Random drawing of the winner..."

  titles:
    # %round% Group number
    round_presentation:
      title: "§6§l%round%° Round"
      subtitle: ""
      fadeIn: 500
      stay: 2000
      fadeOut: 500
    # %player1% Name of the first player involved
    # %player2% Name of the second player involved
    match_presentation:
      title: "§6§lDuel"
      subtitle: "§c%player1% §7vs §9%player2%"
      fadeIn: 500
      stay: 2000
      fadeOut: 500
    # %player% Name of the player involved (winner)
    match_victory:
      title: "§b§l%player% §7won"
      subtitle: ""
      fadeIn: 500
      stay: 2000
      fadeOut: 500
    # %player% Name of the player involved (winner)
    third_place:
      title: "§6§l3° Place"
      subtitle: ""
      fadeIn: 500
      stay: 2000
      fadeOut: 500
    # %player% Name of the player involved (winner)
    tournament_victory:
      title: "§d§l%player%"
      subtitle: "§fwon the tournament"
      fadeIn: 500
      stay: 2000
      fadeOut: 500

events:
  # When a player enters the arena for his duel
  # %player% Name of the player involved
  arena_join:
    commands: [ ]
  # When a player leaves the arena for his duel
  # %player% Name of the player involved
  arena_leave:
    commands: [ ]
  # When a player wins his duel
  # %player% Name of the player involved
  arena_win:
    commands: [ ]
  # When a player loses his duel
  # %player% Name of the player involved
  arena_lose:
    commands: [ ]

commands:
  feedbacks:
    general:
      already_participant:
        - "§cYou are already registered for the tournament"
      not_participant:
        - "§cYou are not registered for the tournament"
    subscribe:
      - "§aYou signed up for the tournament"
    unsubscribe:
      - "§aYou have unsubscribed from the tournament"

Last updated