ersion 1.2.7 - Shop GUI Customization (Database Edition)
Features:
- NEW: Customize shop inventory title in config.yml (store.title)
- NEW: Per-item custom display names (editable via /store editname <slot> <name>)
- NEW: Per-item custom lore (editable via /store editlore <slot> <line1|line2|...>)
- NEW: Global default lore for all shop items in config.yml
- NEW: Full color code support (&a, &c, etc.) for all customizations
- Support for {price} placeholder in lore
Database Schema Updates:
- Added `display_name` column to shop_items table (VARCHAR 256 / TEXT)
- Added `lore` column to shop_items table (LONGTEXT / TEXT)
- Backward compatible - existing shops auto-migrate
New Commands:
- `/store editname <slot> <name>` - Set custom display name for item
- `/store editlore <slot> <line1|line2|...>` - Set lore with | as separator
Configuration Example:
```yaml
store:
title: "&6Custom Shop Name"
default-lore:
- "&7Price: {price} shards"
- "&8Click to purchase"
```
Data Storage:
- Per-item customizations saved in database (MySQL/SQLite)
- Global settings configured in config.yml
- Changes via commands immediately persist to database
Technical Updates:
- Updated version to 1.2.7
- Added display_name and lore fields to ShopItem class
- Updated DatabaseManager table creation for both MySQL and SQLite
- Enhanced ShopManager with batch save/load for customizations
- Added setItemDisplayName() and setItemLore() methods
- Tab completion for editname and editlore commands
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }