Skip to content

Dynamic pricing, auto-refresh, and GUI-based random market system

Notifications You must be signed in to change notification settings

Nrleryx/RandomMarket-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomMarket - Dynamic Random Market System

A powerful and user-friendly market plugin that offers players random items through an intuitive GUI interface. The market automatically refreshes at configurable intervals, and prices are dynamically calculated based on item quantity.

✨ Features

  • Random Item Selection: Market randomly selects items from your configured list
  • Auto-Refresh System: Market automatically updates at configurable intervals (default: 5 minutes)
  • Dynamic Pricing: Prices adjust based on quantity - buy more, pay less per unit!
  • GUI Interface: Beautiful and easy-to-use graphical menu
  • Chat Announcements: All online players are notified when the market refreshes
  • Vault Integration: Full compatibility with all economy plugins (EssentialsX, CMI, etc.)

📋 Commands

  • /randommarket or /rmarket or /rm - Opens the market GUI
  • /randommarket reload - Reloads the plugin configuration (requires permission)

🔧 Installation

  1. Download and place RandomMarket-1.0.0.jar into your server's plugins folder
  2. Install Vault plugin (required)
  3. Install an economy plugin (EssentialsX, CMI, etc.)
  4. Start your server
  5. Configure items and prices in plugins/RandomMarket/config.yml
  6. Use /randommarket reload to apply changes

⚙️ Requirements

  • Minecraft: 1.19+
  • Java: 8+
  • Vault: Required
  • Economy Plugin: EssentialsX, CMI, or any Vault-compatible economy plugin

📖 Configuration

Basic Settings

market:
  update-interval: 5  # Minutes between market refreshes
  price:
    min: 10.0
    max: 1000.0

Adding Items

market:
  items:
    - material: DIAMOND
      display-name: "&bDiamond"
      min-amount: 1
      max-amount: 5
      base-price: 100.0

💰 Pricing System

The plugin uses a dynamic pricing system based on quantity:

  • Higher quantities = lower unit prices
  • Total price = unit price × amount
  • Prices are automatically calculated and adjusted

🎮 How It Works

  1. Market displays 3 random items from your configured list
  2. Each item has a random quantity (between min-amount and max-amount)
  3. Prices are calculated dynamically based on quantity
  4. Market refreshes automatically every X minutes
  5. Players receive chat notifications when market updates
  6. Players can purchase items directly from the GUI

📝 License

This project is licensed under the MIT License.

🔗 Links


Version: 1.0.0
Author: Nrleryx

About

Dynamic pricing, auto-refresh, and GUI-based random market system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages