Skip to main content

Placeholders

zAuctionHouse V4 provides placeholders for use in messages, lore, and with PlaceholderAPI.

Requirements

For PlaceholderAPI placeholders, you need PlaceholderAPI installed on your server.

Internal Placeholders

These placeholders are used within zAuctionHouse configuration files (item lore, messages, etc.):

Item Display Placeholders

Used in item-lore section of config.yml:

PlaceholderDescription
%seller%Name of the player who listed the item
%buyer%Name of the player who bought the item
%price%Formatted price of the item
%time-remaining%Time until the listing expires
%date%Transaction date
%status%Dynamic action message (buy/retrieve)
%items%Item display names
%type%Log entry type
%player%Player involved in the action
%target%Target player (admin operations)

Inventory Placeholders

Used in inventory files:

PlaceholderDescription
%page%Current page number
%max-page%Total number of pages
%zauctionhouse_category_name%Current category name
%expired-items%Number of expired items
%purchased-items%Number of purchased items
%selling-items%Number of items on sale
%s%Pluralization suffix ("" for 1, "s" for 2+)

Message Placeholders

Used in messages.yml:

PlaceholderDescriptionUsed In
%version%Current plugin versionVersion messages
%latest%Latest available versionVersion messages
%syntax%Command syntaxError messages
%inventory-name%Missing inventory nameError messages
%name%Economy nameEconomy messages
%items%Item descriptionTransaction messages
%tax%Tax amountTax messages
%percentage%Tax percentageTax messages
%max-price%Maximum allowed pricePrice error
%min-price%Minimum required pricePrice error
%max-items%Maximum items allowedLimit error
%amount%Amount valueClaim messages
%economy%Economy nameClaim messages
%count%Count of itemsNotification messages
%total%Total valueNotification messages
%key%Cache key nameAdmin cache
%value%Cache valueAdmin cache
%source%Migration sourceMigration messages
%details%Migration detailsMigration messages
%progress%Migration progressMigration messages
%players%Migrated players countMigration messages
%transactions%Transaction countMigration messages
%errors%Error countMigration messages
%duration%Operation duration (ms)Migration messages
%current%Current progressGenerate messages
%time%Time taken (ms)Generate messages

Item Format Placeholders

Used in item-display section:

PlaceholderDescription
%amount%Item quantity
%item-translation-key%Minecraft language key
%item-name%Custom item name

Sell Command Placeholders

PlaceholderDescription
%max-stack-size%Item's maximum stack size

PlaceholderAPI Placeholders

All PlaceholderAPI placeholders use the prefix zauctionhouse_:

Inventory Placeholders

PlaceholderDescription
%zauctionhouse_listed_items%Total number of items listed
%zauctionhouse_sorting_name%Current sort type name
%zauctionhouse_category_name%Current category name

Discord Webhook Placeholders

Used in discord.yml webhook configuration:

Item Placeholders

PlaceholderDescription
%item_id%Internal item ID
%item_material%Material name (lowercase)
%item_display%Item display name with formatting
%item_amount%Stack size
%item_lore%Item lore
%item_enchantments%List of enchantments
%item_custom_model_data%CustomModelData value
%item_dominant_color%Extracted dominant color
%item_image_url%URL to item image

Player Placeholders

PlaceholderDescription
%seller_name%Seller's username
%seller_uuid%Seller's UUID
%buyer_name%Buyer's username (purchase only)
%buyer_uuid%Buyer's UUID (purchase only)

Price Placeholders

PlaceholderDescription
%price%Raw price number
%formatted_price%Price with economy formatting
%economy_name%Economy internal name
%economy_display_name%Economy display name

Time Placeholders

PlaceholderDescription
%created_at%When listing was created
%expires_at%When listing expires
%remaining_time%Time until expiration
%timestamp%Current timestamp

Server Placeholders

PlaceholderDescription
%server_name%Server name (from config)

Category Placeholders

PlaceholderDescription
%category_names%Comma-separated category names
%category_count%Number of matching categories

Usage Examples

Inventory Lore

# In inventories/auction.yml
item:
material: BELL
name: "#2CCED2Auction Information"
lore:
- "#92ffffNumber of items: #2CCED2%zauctionhouse_listed_items%"
- "#92ffffSort type: #2CCED2%zauctionhouse_sorting_name%"
- ""
- "#8c8c8c• #2CCED2Click to refresh"

Item Lore in Config

# In config.yml
item-lore:
listed-auction-item:
- ""
- "<white>⌂ #92ffffSeller#8c8c8c: #2CCED2%seller%"
- "<white>☆ #92ffffPrice#8c8c8c: #2CCED2%price%"
- "<white>⌚ #92ffffExpire#8c8c8c: #969696%time-remaining%"
- ""
- "%status%"

Discord Webhook

# In discord.yml
embed:
title: "New Item Listed!"
description: "**%seller_name%** has listed an item for sale"
fields:
- name: "Item"
value: "%item_display%"
inline: true
- name: "Price"
value: "%formatted_price%"
inline: true

Custom Messages

# In messages.yml
item-sold: "#e6fff3You just sold %items% #e6fff3for #92bed8%price%#e6fff3."

item-bought-seller: "#ffacd5%buyer% #e6fff3just bought %items% #e6fff3for #92bed8%price%#e6fff3."

sales-notification:
- "<click:run_command:/ah history>#e6fff3While you were away, %count% of your items were sold for a total of %total%!"
- "<click:run_command:/ah history>#8c8c8c• #2CCED2Click here to view your sales history</click>"

Color Formatting

zAuctionHouse V4 supports:

  • MiniMessage format: <red>, <bold>, <gradient:red:blue>
  • Hex colors: #RRGGBB or #RGB
  • Legacy codes: &c, &l, etc. (MiniMessage recommended)
  • Custom shortcuts: <primary>, <secondary>, <error>, <success> (defined in config.yml)
# Example using custom shortcuts
message: "<primary>Welcome <secondary>to the auction house!"
# Becomes: "#24d65d Welcome #656665 to the auction house!"
Copyright © 2026 GroupeZ|Build #loading...|-