# FoBounty configuration.
# Money values are whole economy units. Cooldowns use milliseconds unless noted.

settings:
  cooldowns:
    # Per-player cooldown for command actions that can refresh or change bounty data.
    command-ms: 100
    # Per-player cooldown for clicking the GUI refresh button.
    gui-refresh-ms: 100
    # Per-player cooldown for cycling the GUI bounty filter.
    gui-filter-ms: 100
  # How long a chat search prompt stays active before it expires.
  search-timeout-seconds: 30

bounty:
  # Lowest amount a player can place as a bounty.
  min-price: 100
  # Highest amount a player can place as a bounty.
  max-price: 9999999999999
  # If true, a player's active bounty is removed when they die without being killed by another player.
  natural-death-loses-bounty: false

announcements:
  # Master toggle for public bounty claim announcements.
  enabled: true
  # Minimum claimed bounty amount required for a claim announcement. Use -1 to announce every claim.
  minimum-announce-amount: -1
  # Announces when a player places or adds to a bounty.
  bounty-set-enabled: true
  # Minimum added bounty amount required for a bounty-set announcement. Use -1 to announce every bounty set.
  bounty-set-minimum-announce-amount: -1

anti-abuse:
  claim-block:
    # Blocks bounty claims when killer and target share the same IP address.
    same-ip: true
    # Blocks bounty claims when killer and target are on the same /24 IPv4 subnet.
    same-subnet: false
    # Blocks bounty claims between members of the same FoTeams team when FoTeams is installed.
    same-team-foteams: true

discord-webhook:
  # Enables Discord webhook notifications. The url must be a valid Discord webhook URL.
  enabled: false
  url: ''
  notify:
    # Sends a webhook when a bounty is created or increased.
    bounty-created: true
    # Sends a webhook when an admin removes a bounty.
    bounty-removed-by-admin: true
    # Sends a webhook when a bounty is claimed.
    bounty-claimed: true

native-dialogs:
  # Uses Minecraft's native dialog/input screens for search and text/number input when supported.
  # Requires a compatible Paper or Paper-fork server with the Dialog API.
  # Spigot and older versions automatically fall back to inventory/chat GUI mode.
  # Set this to false to always use inventory/chat GUIs.
  enabled: true
  # Sends admins a short warning when native dialogs are enabled but unavailable and the plugin falls back.
  warn-on-fallback: true

gui:
  # Inventory title for the admin editor.
  admin-title: Bounty Editor
  # Number of history entries shown on each GUI page. Maximum supported value is 28.
  history-page-size: 28

history:
  # Maximum stored history entries per player. Older entries are pruned after new history is recorded.
  cap: 28

database:
  # SQLite database file name inside the plugin data folder.
  file: bounties.db
