NightMarket v1.15 - The Formatting Update
This update introduces powerful new formatting options, giving server owners greater control over how information is displayed to players.
✨ New Features
1. Customizable Time Formatting
You now have full control over the %time_remaining% placeholder. A new time_format section has been added to config.yml, allowing you to define custom text for days, hours, minutes, and seconds, including their singular and plural forms. This is perfect for server localization or simply matching your server's theme.
- Example config.yml section:
time_format:
day: " Day"
days: " Days"
hour: "h"
hours: "h"
minute: "m"
minutes: "m"
second: "s"
seconds: "s"
2. Advanced Price Formatting
A new price_format section in config.yml allows you to choose how economy prices are displayed throughout the plugin.
- DEFAULT Style: The classic format with thousand separators (e.g., 1,000,000).
- COMPACT Style: A modern, space-saving format using suffixes for large numbers (e.g., 1k, 1.5M, 2B). You can even customize the suffixes and decimal precision.
This setting affects all currency-based prices, including item lore and messages, ensuring a consistent look across the market.
- Example config.yml section:
price_format:
# Style can be "DEFAULT" or "COMPACT".
style: "COMPACT"
compact_decimal_places: 1
suffixes:
- "k" # Thousand
- "M" # Million
- "B" # Billion
- "T" # Trillion
⚙️ Configuration Changes
- Your config.yml will be automatically updated to version 11 to include the new time_format and price_format sections. Your existing settings will be preserved.