Skip to content
Configuration

Configuration

Config Overview

The main configuration file is located at plugins/XAuctionHouse/config.yml. Below is the complete default configuration with explanations for each section.

Command Aliases

Add custom command names so players can use familiar shortcuts (for example /hdv on French servers).

# Aliases for /ah and /pah
command-aliases:
  ah:
    - auctionhouse   # /auctionhouse works the same as /ah
  pah: []            # No extra aliases for /pah

The main command name is always available, so even an empty list keeps /ah and /pah working. See the Command Aliases section under Commands & Permissions for full details.

General Settings

# Enable debug logging
debug: false

# Announcement settings for sales, bids, and auction wins
announcements:
  sales: true        # Announce when items are sold
  auctions: true     # Announce when auctions start
  bids: true         # Announce when bids are placed
  wins: true         # Announce when auctions are won
  type: BOSSBAR      # CHAT, ACTION_BAR, TITLE, SUBTITLE, BOSSBAR
  bossbar:
    style: PROGRESS  # PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20
    color: GREEN     # BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW

# Duration of an item listing before expiration
# Format: s (seconds), m (minutes), h (hours), d (days), w (weeks), M (months), y (years)
duration: 3d

# Maximum price for an item, also caps an auction's starting bid and buy-it-now price
maximum-price: 1000000000

# Delay in ms before showing join notifications
delay-message: 1000

# Default currency (empty = vault primary)
default-currency: ""

# Auto-return expired items to player on join
auto-return-expired: false

The announcements.type setting controls how all announcements appear. BOSSBAR is the least intrusive option for busy servers.

Blocked Items

# Materials that cannot be sold
blocked-materials:
  - ELYTRA

# Display names that cannot be sold (case-insensitive substring match)
blocked-names:
  - fuck

# Anvil-renamed display names that cannot be sold (case-insensitive)
blocked-anvil-names:
  - fuck

# Largest item that may be listed, in bytes once saved (49000 at most)
max-item-size: 32768

All three lists use case-insensitive matching. The material list checks exact material names (use Bukkit material names like DIAMOND_SWORD). The name lists check if the item's display name contains any of the blocked strings. They also apply to what an item holds: shulker boxes, bundles and containers inside them.

An item heavier than max-item-size is refused with the sell-item-too-large message. An ordinary item, enchanted and renamed, stays well under 2000 bytes; a shulker box of written books weighs tens of kilobytes. A value above 49000 is ignored, since the item would no longer fit its column.

Tax Configuration

tax:
  enabled: true
  rate: 0.05         # 5% tax on sales
  type: SELLER       # SELLER (deducted from proceeds) or BUYER (added to price)
  rates:             # per-rank rates (ah.tax.<name>), the lowest one held wins
    vip: 0.03
    mvp: 0.02

Auction Settings

auction:
  enabled: true
  default-duration: 1d        # Default duration if not specified
  min-duration: 1h            # Minimum allowed duration
  max-duration: 7d            # Maximum allowed duration
  min-starting-bid: 1         # Minimum starting bid
  min-bid-increment: 1.0      # Flat minimum increment above current bid
  min-bid-increment-percent: 0  # Fraction of the current bid (0.05 = 5%, 0 = disabled)
  max-active-auctions: 5      # Max active auctions per player

  snipe-protection:
    enabled: true
    threshold: 5m              # Trigger window before auction end
    extension: 5m              # Time to add when triggered

  bid-increments:              # GUI button presets by starting bid tier
    - threshold: 100
      values: [1, 10, 50]
    - threshold: 1000
      values: [10, 100, 500]
    - threshold: 10000
      values: [100, 1000, 5000]
    - threshold: -1            # -1 = no upper limit (fallback)
      values: [1000, 10000, 50000]

If both min-bid-increment and min-bid-increment-percent are set, the larger of the two applies: the flat amount, or that fraction of the current bid.

Favorites

favorites:
  enabled: true

Set to false to disable the favorites system entirely. The Favorites category, the star and the add/remove line in the lore, and the shift-right-click action are hidden, and /ah favorite and /ah favorites answer that favorites are disabled.

Server Listings & Bans

# Server listings (money sink) — created with /ah serverlist
server-listings:
  enabled: true
  display-name: "Server"          # seller name shown for server listings

# Auction-house bans — /ah ban and /ah unban
bans:
  default-reason: "Scam"          # reason used when none is provided
  exempt-admins: true             # ah.admin players cannot be banned
  cancel-listings-on-ban: true    # remove the banned player's active listings
  block-sell: true                # /ah sell and /ah auction
  block-buy: true                 # buying fixed-price listings
  block-bid: true                 # bidding on auctions
  block-open: false               # opening the auction house at all

See Server Listings and Moderation & Bans for full details on these features.

Discord Webhooks

# Sale and auction event notifications
discord-sales:
  enabled: false
  webhook-url: ""

# Admin action logs (force-remove, purge)
discord-admin:
  enabled: false
  webhook-url: ""

You can use the same webhook URL for both or separate channels for sales and admin logs. See the Integrations page for details on the embed format.

Keeping the addresses out of config.yml

A webhook address lets whoever holds it post in the channel, and config.yml gets pasted into support threads and copied from server to server; only the dashboard's configuration editor hides it, as <hidden>. Both addresses can live in secrets.yml instead, next to it in plugins/XAuctionHouse/, under the same keys:

discord-sales:
  webhook-url: "https://discord.com/api/webhooks/..."
discord-admin:
  webhook-url: "https://discord.com/api/webhooks/..."

A non-empty value in secrets.yml wins over config.yml: leave webhook-url empty there, and keep enabled in config.yml. The plugin only reads secrets.yml — it never creates or rewrites it, and never copies its values into config.yml. Without the file, everything is read from config.yml as before. /ah reload picks up a change.

Update Checker

update:
  check: true         # Check for new versions on startup
  notifications: true  # Notify admins on join (requires ah.update permission)