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

Commands and permissions

Every OtAuctions command, argument and permission node, with defaults.

On this page

Commands#

The main command is /ah. The aliases are /auction, /auctionhouse and /otauctions. Subcommands can only be used by players, except admin reload and admin clear, which also work from the console.

Command What it does Permission
/ah Opens the auction house. otauctions.use
/ah <text> Opens the auction house with a search for the text, when the first word is not a subcommand. otauctions.use
/ah sell [price] [amount] Lists the item in your main hand. Without a price the sell dialog opens. Alias: list. otauctions.sell
/ah search [text] Searches all listings. Without text the search dialog opens. otauctions.use
/ah listings Shows your active listings. Alias: mine. otauctions.use
/ah claim Opens your collection box. Aliases: collect, box. otauctions.use
/ah admin reload Reloads config.yml and messages.yml. otauctions.admin
/ah admin remove <id> Removes an active listing and returns the item to the seller. Players only. otauctions.admin
/ah admin clear <player> Removes all active listings of a player. The items go to the collection box of that player. otauctions.admin

Notes:

  • With dialogs: false, /ah sell without a price and /ah search without text show a usage message instead of a dialog.
  • /ah admin clear only knows players the server has seen before (the server's profile cache). Otherwise it answers Unknown player <name>.
  • /ah admin remove needs the listing id. Staff see the id in the lore of every listing, as #<id>. In the menu, staff can also remove a listing with shift and right click.
  • The commands sell, search, listings and claim are tab completed. For sell, the completion suggests 100, 1k and 10k, and the number of items in your hand as the amount.

Permissions#

Permission Allows Default
otauctions.use Open the auction house, browse, buy, search, and use /ah listings and /ah claim. Everyone
otauctions.sell List items with /ah sell or the sell button. Everyone
otauctions.notax Sell without paying the sales tax. Nobody
otauctions.admin /ah admin ... and removing listings. Includes otauctions.use and otauctions.sell. Operators
otauctions.limit.<name> Use the limit with that name from listings.limits, for example otauctions.limit.vip. Nobody
otauctions.limit.<number> Allow that many active listings, for example otauctions.limit.25. Nobody

The two otauctions.limit permissions are not listed in the plugin file, so most permission plugins will not show them in a list. Add them by hand.

Listing limits#

A player may have listings.default-limit active listings (5 by default). A player with a limit permission gets the highest of all limits they have, and never less than the default. Both kinds of limit permission work together.

Example:

listings:
  default-limit: 5
  limits:
    vip: 10
    mvp: 20

A player with otauctions.limit.vip can have 10 listings. A player with both otauctions.limit.vip and otauctions.limit.mvp can have 20. A player with otauctions.limit.50 can have 50.

The limit counts all active listings of the player. If a player is over the limit, for example after you lower it, existing listings stay up, but the player cannot list new ones until they are below the limit.

Data storage#

OtAuctions keeps three tables: listings, collection box items and sale notices for sellers. The table names start with storage.table-prefix (otauctions_ by default).

  • With SQLite (the default) the data is in plugins/OtAuctions/otauctions.db. Back up that file together with its -wal and -shm files while the server is stopped.
  • With MySQL or MariaDB the data is in the database you configure. See Multiple servers.
  • Items are stored as serialized item data, so enchantments, names and other item data are kept as they are.

All storage work runs on a separate thread, so a slow database does not freeze the server. When storage fails, players see The auction house is unavailable right now. Try again in a moment.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.