Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

OtAuctions

Install and use OtAuctions for Minecraft: selling with dialogs, search, the collection box, commands, permissions, configuration and networks.

OtAuctions | Minecraft

Requirements

  • A Paper server on Minecraft 1.21.11, 26.1, 26.2 or 26.3.
  • Java 21 or newer.
  • Vault and an economy plugin that supports it, such as EssentialsX or CMI.

OtAuctions uses Paper features such as native dialogs, so plain Spigot and Bukkit servers are not supported.

Installation

Step 1: Add the plugin

Extract the zip and put OtAuctions-1.0.jar in the plugins folder of your server. Vault and your economy plugin must be in that folder too.

Step 2: Restart the server

Restart the server. Do not use /reload. OtAuctions creates plugins/OtAuctions/config.yml, messages.yml and an SQLite database. The console shows:

[OtAuctions] OtAuctions 1.0 enabled with SQLite storage.

Step 3: Open the auction house

Join the server and type /ah. That is all you need for a single server. To share the auction house between servers, read Networks.

Using OtAuctions

Buying

/ah opens the auction house. Hover over an item to see the price, the seller and when it expires. Click it to open the confirm screen and click the green panes to buy. If your inventory is full, the item waits in your collection box.

Selling

Hold the item in your main hand and type /ah sell, or click the sunflower in the menu. A dialog opens with a preview of the item, a price field and, for stacks, an amount slider. You can also type the price straight away:

/ah sell 1.5k
/ah sell 2000 32

Prices accept k, m, b and t, so 1.5k is 1,500. The price is for the whole stack you list.

Searching, categories and sorting

Click the sign in the menu or type /ah search to search by item name, enchantment or seller. /ah search mending searches right away. The category button switches between all items, blocks, tools, combat, food, potions, books, redstone and miscellaneous (right click goes back). The hopper switches between newest, ending soon, lowest price and highest price.

Your listings and the collection box

/ah listings shows your active listings. Click one to cancel it and get the item back. /ah claim opens your collection box: expired and cancelled listings, items removed by staff and purchases made with a full inventory wait there. Click an item or the hopper to collect everything.

Sellers who are offline when an item sells get the money right away through your economy plugin and see a summary of their sales the next time they join.

Commands

CommandWhat it doesPermission
/ahOpen the auction houseotauctions.use
/ah sell [price] [amount]List the item in your hand. Without a price a dialog opens.otauctions.sell
/ah search [text]Search all listingsotauctions.use
/ah listingsYour active listingsotauctions.use
/ah claimYour collection boxotauctions.use
/ah admin reloadReload config.yml and messages.ymlotauctions.admin
/ah admin remove <id>Remove a listing and return it to the sellerotauctions.admin
/ah admin clear <player>Remove all listings of a player, also from the consoleotauctions.admin

Aliases: /auction, /auctionhouse and /otauctions. Staff with otauctions.admin also see the id of every listing and can remove one with shift and right click in the menu.

Permissions

PermissionAllowsDefault
otauctions.useBrowse and buyEveryone
otauctions.sellList itemsEveryone
otauctions.notaxSell without paying the sales taxNobody
otauctions.adminStaff commands and removing listingsOperators
otauctions.limit.<name>Use a limit from listings.limits, for example otauctions.limit.vipNobody
otauctions.limit.<number>Allow that many active listings, for example otauctions.limit.25Nobody

A player gets the highest limit of all permissions they have, and never less than listings.default-limit.

Configuration

Change plugins/OtAuctions/config.yml and run /ah admin reload. Changes to storage need a restart.

Listings

listings:
  duration-hours: 48
  min-price: 1
  max-price: 1000000000
  default-limit: 5
  limits:
    vip: 10
    mvp: 20
  listing-fee: 0
  listing-fee-percent: 0
  sales-tax-percent: 5
  confirm-purchase: true
  • duration-hours: how long a listing stays up. Decimals work, for example 0.5.
  • listing-fee and listing-fee-percent: what a seller pays to list an item, a fixed amount and a percentage of the price.
  • sales-tax-percent: taken from the price before the seller is paid. The rate is saved with each listing.
  • confirm-purchase: set to false to buy with one click.

Blacklist

listings:
  blacklist:
    materials:
      - BEDROCK
      - BARRIER
    name-contains: []
    lore-contains: []

The blacklist also checks the contents of shulker boxes and bundles, so a blocked item cannot be hidden inside one.

Currency, dialogs and sounds

currency:
  use-economy-format: false
  prefix: '$'
  suffix: ''
  decimals: 2

dialogs: true

sounds:
  open: BLOCK_CHEST_OPEN
  click: UI_BUTTON_CLICK
  success: ENTITY_EXPERIENCE_ORB_PICKUP
  error: ENTITY_VILLAGER_NO

Set use-economy-format to true to show prices the way your economy plugin formats them. With dialogs: false selling works through /ah sell <price> and search asks for the text in chat. Set a sound to none to turn it off.

Discord webhook

webhook:
  enabled: true
  url: 'https://discord.com/api/webhooks/...'
  on-list: true
  on-sale: true

Posts new listings and sales in a Discord channel. Mentions in item names never ping anyone.

Networks

Point every server at the same MySQL or MariaDB database and they share one auction house. Give each server its own server-name.

server-name: survival

storage:
  type: mysql
  mysql:
    host: localhost
    port: 3306
    database: minecraft
    username: root
    password: ''
    pool-size: 6
  table-prefix: otauctions_
  sync-interval-seconds: 2
  • New listings, sales and cancels show up on the other servers within sync-interval-seconds.
  • A purchase is decided by the database, so two players on different servers can never buy the same item.
  • Sellers get their sale message on whichever server they are playing.
  • Run every server on the same Minecraft version. An item saved on a newer version cannot be read by an older server, so that server hides the listing and logs it once.

Messages

Every text is in plugins/OtAuctions/messages.yml and uses MiniMessage, so colours, gradients and hex codes work. Placeholders such as <price>, <item> and <seller> are filled in by OtAuctions. Run /ah admin reload after a change.

Frequently asked questions

Can players duplicate items?

Every purchase, cancel and return is one database transaction, and items only reach a player after the database confirms it. Menu clicks of every kind are blocked, and OtAuctions is tested with bots that try simultaneous purchases, spam clicks and cancels during a purchase.

Does it work on Spigot or Folia?

No. OtAuctions needs Paper or a fork of it and does not support Folia yet.

Where do I get help?

Open a ticket at builtbyotte.com/help.