πŸŒ™Black Market

Create timed auction events with exclusive deals and bidding systems!


Overview

The Black Market is a special shop system that offers limited-time items with optional auction mechanics. Items rotate on a timer, creating urgency and excitement for players.


Configuration Files

The Black Market uses two configuration files:

File
Purpose

blackmarket/blackmarket.yml

Main settings and items

blackmarket/blackmarket-auction.yml

Auction-specific settings


Main Configuration

blackmarket/blackmarket.yml

# Black Market Configuration

# Automatically open GUI when event starts
auto_open_gui: true

# Broadcast purchases to server
broadcast_purchases: true

# Skip to next item when current is purchased
skip_on_purchase: false

# How long each item is available (seconds)
item_duration: 30

# Number of items per event
items_per_event: 5

# Auction Mode Settings
auction_mode:
  enabled: false
  starting_price: 1000.0
  bid_increase_percent: 5.0
  bid_reset_time: 5  # seconds
  one_item_per_server: true
  limit_purchases: false

# Messages
messages:
  event_start: "&6&l[BLACK MARKET] &eThe Black Market has opened!"
  event_end: "&6&l[BLACK MARKET] &cThe Black Market has closed."
  no_event: "&cThe Black Market is not open right now."
  already_purchased: "&cYou have already purchased from this Black Market!"
  insufficient_funds: "&cYou don't have enough money for this item!"

# Items Configuration
items:
  special_sword:
    type: ITEM
    price: 5000.0
    weight: 1
    max_stock: 1
    use_auction_price: true
    item:
      material: DIAMOND_SWORD
      amount: 1
      name: "&6&lBlack Market Sword"
      lore:
        - "&7A mysterious sword from the"
        - "&7depths of the black market."
        - ""
        - "&6Special Edition"
      enchants:
        1:
          enchant: SHARPNESS
          level: 5
        2:
          enchant: UNBREAKING
          level: 3

  mystery_command:
    type: COMMAND
    price: 3000.0
    weight: 2
    commands:
      - "give %player% diamond 64"
      - "msg %player% &aYou received a mystery reward!"
    display_item:
      material: ENDER_CHEST
      name: "&d&lMystery Box"
      lore:
        - "&7What could be inside?"
        - "&7Only one way to find out!"

  rare_shop_item:
    type: SHOP_ITEM
    price: 10000.0
    weight: 1
    shop_category: "your_category_id"
    shop_item: "your_item_id"
    display_item:
      material: NETHER_STAR
      name: "&b&lRare Shop Item"
      lore:
        - "&7Normally unavailable item"
        - "&7from the shop!"

Item Types

Type
Description

ITEM

Physical item given to player

COMMAND

Executes commands on purchase

SHOP_ITEM

References an item from another shop

ITEM Type

COMMAND Type

SHOP_ITEM Type


Weight System

Weights determine how often items appear:

Higher weight = more frequent appearance in the rotation.


Auction Configuration

blackmarket/blackmarket-auction.yml


Commands

Command
Description

/blackmarket

Open the Black Market GUI

/blackmarket start

Start a Black Market event

/blackmarket stop

End the current event

/blackmarket reload

Reload configuration

/blackmarket status

View current event status

/blackmarket toggle <setting>

Toggle settings

Toggle Options


Permissions

Permission
Description
Default

infiniteshops.blackmarket.use

Access the Black Market

true

infiniteshops.blackmarket.admin

Admin commands

op

infiniteshops.blackmarket.bid

Place bids in auctions

true

infiniteshops.blackmarket.*

All Black Market permissions

op


Placeholders

Use these placeholders in messages:

Placeholder
Description

%player%

Player name

%amount%

Bid/price amount

%item%

Item name

%winner%

Auction winner

%price%

Starting price

%seconds%

Time remaining

%currentBid%

Current highest bid

%totalBids%

Total number of bids

%uniqueBids%

Number of unique bidders


Event Flow

Standard Mode (Non-Auction)

  1. Event starts β†’ Items selected from pool based on weights

  2. Each item displays for item_duration seconds

  3. Players can purchase at fixed price

  4. If skip_on_purchase: true, moves to next item on purchase

  5. Event ends after all items shown

Auction Mode

  1. Event starts β†’ First item put up for auction

  2. Players bid, each bid extends timer by bid_reset_time

  3. Anti-snipe adds time if bid in final seconds

  4. Highest bidder wins when timer expires

  5. Next item begins auction

  6. Event ends after all items auctioned


Tips

  1. Balance item weights - Ensure variety in each event

  2. Set appropriate prices - Consider server economy

  3. Use anti-snipe - Prevents last-second sniping in auctions

  4. Limit wins per player - Gives more players a chance

  5. Broadcast purchases - Creates FOMO and excitement

  6. Test item configurations - Verify all items work correctly


Last updated