⭕ NightMarket [1.20-1.21+] - FREE Rotating Market Plugin | Mystery Items & Player Reroll ✨ icon

⭕ NightMarket [1.20-1.21+] - FREE Rotating Market Plugin | Mystery Items & Player Reroll ✨ -----

Boost Player Engagement with a FREE Rotating GUI Shop, offering Timed-Exclusive Deals and Unique!




NightMarket v1.6 - The Dynamic Discount Update!
This update introduces a dynamic new discount system, giving server owners more control over the market's economy and providing an exciting experience for players.

✨ New Features
Dynamic Item Discounts
Items can now be configured to have a chance of appearing on sale for each player. When an item is selected for a player's market, the plugin will roll a chance to apply a discount.

  • Both the chance of a discount and the percentage of the discount are fully configurable on a per-item basis.

  • This system is player-specific, meaning one player might see an item on sale while another sees it at full price, encouraging players to check their market frequently.
Strikethrough Price Display
To clearly communicate a sale, discounted items will now display the original price with a strikethrough next to the new, lower price in the item's lore.

Customizable Price Formatting
Server owners now have complete control over how prices are displayed. A new price-placeholders section in items.yml allows you to define the exact text and color format for both normal and discounted prices.

⚙️ Configuration Changes (items.yml)
To support these new features, items.yml has been updated with two new sections:

discount section (per-item):
You can now add a discount block to any item in the items section.

  • chance: The probability (e.g., 25.0 for 25%) that the item will be on sale.

  • percentage: The discount amount (e.g., 50.0 for 50% off).
Code (Text):
items:
  my_awesome_sword:
   price: 1000.0
   discount:
     chance: 10.0
     percentage: 50.0
   # ... other settings
price-placeholders section (global):
This new top-level section controls the display format for all item prices.

  • normal: The format for a standard price. Uses %final_price%.

  • discounted: The format for a sale price. Uses %original_price% and %final_price%.
To use it, simply add a line containing only %price_placeholder% in your item's lore.

Code (Text):
price-placeholders:
  normal: "&ePrice: &6%final_price%"
  discounted: "&ePrice: &m&6%original_price%&r &a%final_price%"

# ... inside an item's lore:
# lore:
#   - "A very cool sword."
#   - "%price_placeholder%"
Thank you for using NightMarket! We hope you and your players enjoy these new economic features.

NightMarket v1.5.1 Changelog
This is a small patch release focused on improving the audio feedback for market status changes.

✨ New Features
  • Market Open Sound: You can now configure a unique sound effect that plays for all online players when the Night Market opens. A new market_open section has been added to the sounds: area in config.yml to customize this.
Bug Fixes
  • Market Close Sound: Fixed a bug where the market_closed sound effect was not playing when the market closed, either automatically or via the /nm forceclose command. The sound will now play correctly for all online players.
----------, Aug 21, 2025

NightMarket v1.5 - The Global Stock & Competition Update!
This update introduces major new features focused on creating a more dynamic and competitive economy, alongside significant quality-of-life improvements for server administrators.

✨ New Features
Global Item Stock System
You can now set a global stock for each item in items.yml. This stock is shared across the entire server.

  • Set stock: -1 for infinite supply (ideal for common items).

  • Set stock to any positive number (e.g., stock: 5) to create rare, limited-quantity items that players will compete for!

  • A new %stock% placeholder is available to display the remaining quantity in the item's lore.

    Code (Text):
      nether_star:
        chance: 5.0 # Very Rare
        price: 2000.0
        stock: 2
        display_item:
          material: "NETHER_STAR"
          name: "&5Nether Star"
          lore:
            - "&7Power from the depths."
            - ""
            - "&ePrice: &6%price_placeholder%"
            - "&7Stock: &4&lONLY %stock% LEFT!"
        commands_on_click:
          - "give %player% nether_star 1"
Customizable "Out of Stock" Display
A new item display, global_out_of_stock_item_display, has been added to config.yml.

  • This allows you to create a unique appearance for items that have run out of global stock, differentiating them from items that a player has personally purchased.
Update Notifications for Operators
In addition to the console message, operators will now receive a configurable update notification directly in-game upon joining the server if a new version is available.

  • The update_notify message in config.yml has been simplified to a single, customizable line.
Improvements & Fixes
Intelligent Auto-Config Updater
The plugin now features a smart configuration updater. When you update the plugin, it will automatically add any new options to your existing config.yml without deleting your settings or comments. No more manual merging or .yml.old files!

Bug Fix: /nm resetplayer Command
Fixed a critical bug where using /nightmarket resetplayer <player> would not refresh the target player's open GUI, causing a data desynchronization. The GUI will now update instantly and correctly after a reset.

⬆️ How to Update
  1. Replace your old NightMarket.jar with the new one.

  2. Restart your server. The plugin will automatically and safely update your config.yml with the new options.

  3. (Optional) Customize the new options in config.yml and add stock values to your items.yml to take advantage of the new features.
----------, Aug 21, 2025

NightMarket v1.4 - The Convenience Update!
✨ New Features
  • Automatic Update Checker: Implemented an automatic update checker. Server operators and players with OP permission will now be notified in-game and in the console when a new version is available on SpigotMC. This feature can be toggled in the config.yml.
Code (Text):
# -- Update Checker --
# Set to true to enable automatic update checking on plugin startup.
# The plugin will notify you in the console if a new version is available.
check-updates: true
----------, Aug 19, 2025

NightMarket v1.3 - The Multi-Economy & Stability Update!
This update focuses on massive improvements to flexibility, stability, and administrative convenience.

✨ New Features
  • Multi-Economy Support: NightMarket is no longer limited to just Vault! You can now use different economy plugins for your market via a new configuration setting.
    • Added native support for PlayerPoints.
    • Added native support for TokenManager.
    • A new economy.provider option in config.yml allows you to explicitly select VAULT, PLAYER_POINTS, or TOKEN_MANAGER.

      Code (Text):
      # -- Economy Settings --
      economy:
        # Set to false to disable all economy features.
        # If false, all items will be free and no economy plugin is needed.
        enabled: true
        # Choose the economy plugin to use. This MUST be installed on your server.
        # Valid options: VAULT, PLAYER_POINTS, TOKEN_MANAGER
        # - VAULT: Requires Vault and an economy plugin like EssentialsX.
        # - PLAYER_POINTS: Requires the PlayerPoints plugin.
        # - TOKEN_MANAGER: Requires the TokenManager plugin.
        provider: "VAULT"
Bug Fixes
  • Player Data Persistence: A critical bug has been fixed where player market data (assigned items, revealed slots) would be lost after a server or plugin reload. All player progress within a market cycle is now correctly saved and reloaded.
Improvements
  • Enhanced Reload Command: The /nightmarket reload command is now more powerful. It will properly reload all plugin configurations and re-establish the connection to the chosen economy provider without requiring a server restart.
----------, Aug 17, 2025

NightMarket v1.2 - Bug Fix Update

This is a small but important update that addresses critical bugs related to the new market announcement system.

️ Fixed
  • Corrected a critical bug in the market announcement scheduler that prevented before_open and before_close broadcasts from being sent at the correct times.

  • Improved the configuration loader to correctly parse market announcement schedules from config.yml, resolving an issue where announcements were not being loaded at all due to a format mismatch.
----------, Aug 14, 2025

NightMarket v1.1 - The Automation & Engagement Update!

We're excited to release NightMarket v1.1, bringing significant quality-of-life improvements and new features to enhance your server's market experience!

✨ New Features
1. Automatic Config Updater!
Keeping your configurations up-to-date has never been easier! NightMarket now includes a robust system that simplifies all future updates.

  • How it Works: When you install a new version, the plugin automatically detects if your config.yml is outdated. If it is, your existing config is safely backed up as config.yml.old, and a new, up-to-date config.yml is generated with all the latest options.

  • Benefit: This eliminates the hassle of manually merging new settings, ensuring you always have access to the latest features without losing your old setup.

  • Action Required: After an automatic update, simply review your config.yml.old and transfer any custom settings to the newly generated config.yml.
2. Advanced Market Announcement System!
Elevate player engagement with dynamic, scheduled announcements! You can now configure custom messages to be broadcast at specific intervals before the Night Market opens or closes.

  • Benefit: This feature creates anticipation for market openings, reminds players of impending closures (driving last-minute purchases), and makes the Night Market feel like a more significant, event-driven part of your server.

  • Configuration: A new announcements section has been added to your config.yml. Define the time_before (in seconds) and craft your custom message, with full support for color codes.

  • Example Use Cases:
    • "The Night Market will open in 1 hour! Get ready for new deals!"

    • "The Night Market is closing in 10 minutes! Make your final purchases!"
️ Improvements & Fixes
  • Internal Code Refinement: Addressed a minor internal issue related to configuration file handling, improving plugin stability and robustness during startup.
We hope you enjoy these new additions! As always, feel free to reach out for support or feedback.
----------, Aug 13, 2025

Resource Information
Author:
----------
Total Downloads: 189
First Release: Aug 11, 2025
Last Update: Yesterday at 2:15 PM
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings