# Files

**CONFIG**

```
# Seconds paralyzed until combat can begin
countdown: 5

# Helps the winner to collect his opponent's items (seconds)
grace-time-of-victory: 15

# Distance to where the player can throw the pearl
max-distance-pearl: 50

# Ticks until the start of the duel/being teleported, this cannot be too high.
ticks-until-start-duel: 5

# Maximum duration for a duel (seconds)
maximum-duration-duel: 600

# Maximum duration of petition until not accepted (seconds)
maximum-duration-request: 60

# Keep inventory in duels
keep-inventory-in-duel: false

# Sets whether the player should die if he disconnects while in a duel
kill-player-disconnected-in-duel: true

commands-in-duel:
  mode: WHITELIST # BLACKLIST / WHITELIST
  commands:
    - /msg
    - /r
    - /tell
    - /helpop

# Placeholders in start: %oponent1%, %oponent2%
# Placeholders in end: %winner%, %loser%
execute-commands:
  start:
    - gamemode survival %oponent1%
    - gamemode survival %oponent2%
    - heal %oponent1%
    - heal %oponent2%
  end:
    - heal %winner%
```

**MESSAGES**

```
messages:
  prefix: "&#D71C35🗡 &lDuels &8»"
  no-has-permission: "%prefix% &cYou don't have permission."
  command-for-player: "%prefix% &cThis command is only available to the console."
  command-for-console: "%prefix% &cThis command is only available to players."
  player-not-found: "%prefix% &cPlayer not found."
  unknown-command: "%prefix% &cUnknown command."
  reload-success: "%prefix% &#96c9e0Files reloaded successfully."
  command-usage: "%prefix% &cUsage: %command%"
  admin:
    set-lobbyduels: "%prefix% &#96c9e0Dueling lobby created successfully."
    arena-status: "%prefix% &#96c9e0Arena &b%arena% &#96c9e0is: &r%state%"
    force-end-duel: "%prefix% &#96c9e0You canceled the duel between &b%player1% &#96c9e0and &b%player2%"
    force-end-duel-info: "%prefix% &cAn admin canceled the duel."
    player-not-in-duel: "%prefix% &cPlayer &b%player% &cis not in a duel."
  arena:
    already-exist: "%prefix% &cArena &b%arena% &calready exists."
    not-found: "%prefix% &cArena &b%arena% &cnot found."
    create: "%prefix% &#96c9e0Arena &b%arena% &#96c9e0created successfully. \n&#96c9e0Set up the location points with &a/duelsadmin setpoint [arena] [spawn1/spawn2]"
    setpoint: "%prefix% &#96c9e0Set point &b%point% &#96c9e0in &b%arena% &#96c9e0successfully."
    finish-setup: "%prefix% &#96c9e0Arena &b%arena% &#96c9e0is now ready to use."
    not-available: "%prefix% &cArena &b%arena% &cis not available for dueling."
    none-available: "%prefix% &cNo arenas are available."
    delete: "%prefix% &#96c9e0Arena &b%arena% &#96c9e0deleted successfully."
  duel:
    send-request: "%prefix% &#96c9e0Duel request sent to player &b%player% &#96c9e0in arena &b%arena%"

    received-request: "%prefix% &b%player% &#96c9e0challenged you to a duel in arena &b%arena% \n&#96c9e0Accept or deny with &a/duels accept/deny %player%."
    already-request: "%prefix% &cYou've already sent a request to player &b%player%"
    expire-request: "%prefix% &cTime's up for &b%player% &cto accept the duel."

    request-cancel: "%prefix% &#96c9e0You canceled the duel request to &b%player%"
    request-cancel-info: "%prefix% &b%player% &ccanceled the duel in arena &b%arena%"

    request-deny: "%prefix% &#96c9e0You denied the duel request from &b%player%"
    request-deny-info: "%prefix% &b%player% &cdenied the duel request."

    request-accept: "%prefix% &#96c9e0Accepted the duel in arena &b%arena% &#96c9e0vs &c%player%"
    request-accept-info: "%prefix% &b%player% &#96c9e0accepted the duel in arena &b%arena%"

    player-in-duel: "%prefix% &b%player% &cis already in a duel."
    player-in-combat: "%prefix% &b%player% &cis in combat, wait a bit..."
    countdown: "&cThe fight starts in: &#96c9e0%time%"
    started: "&#96c9e0The duel has started, good luck!"
    winner: "&c⚔ &a%winner% &#96c9e0won the duel against &c%loser%"
    not-requests: "%prefix% &cYou don't have a duel request from player &b%player%"
    blocked-command: "%prefix% &cYou can't use that command during a duel."
    prevent-teleport: "%prefix% &cYou can't teleport out of the arena."
  ignore:
    ignore-player: "%prefix% &#96c9e0You're now ignoring duel requests from &b%player%."
    remove-ignore-player: "%prefix% &#96c9e0You're no longer ignoring &b%player%."
    ignore-all: "%prefix% &#96c9e0You're now ignoring all duel requests."
    remove-ignore-all: "%prefix% &#96c9e0You're no longer ignoring any players."
    player-ignoring: "%prefix% &b%player% &cis ignoring you and didn't get your invitation."
```

`arenas.yml` and `usderdata.yml` for **storage**


---

# 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://wiki-or-t2h-team.gitbook.io/wiki-t2hstudio/liteduels/files.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.
