New update for the
Lockers Plugin! This release includes several important changes, new features, and improvements to make managing your lockers even better.
What's New?
1. License Update
We've updated the plugin license for better clarity and compliance.
2. Database Configuration Enhancements
- Connection Pool Options:
Added configurable connection pooling options in config.yml to optimize database performance for MySQL users.
- SSL Support:
Secure your MySQL connections with new SSL configuration options in config.yml.
⚠️ Important:
If you're upgrading, please backup and delete your current config.yml to let the plugin generate the updated version automatically. Alternatively, you can manually update the file by referring to the new options listed on the plugin’s main page.
3. bStats Integration
We’ve added support for bStats tracking to gather anonymous plugin usage data. This helps us understand how the plugin is used and allows us to improve it for everyone!
4. Code Cleanup and Restructuring
We’ve made significant improvements to the plugin's internal structure for cleaner, more efficient code. This ensures better performance and makes future updates easier.
⚙️ Updated Configuration Options
Here’s a preview of the newly added options in config.yml:
Code (Text):
storage:
# Supported database types: 'MySQL' and 'SQLite'.
# Use 'MySQL' or 'SQLite' for server-based databases, or 'SQLite' for a lightweight file-based database.
type: MySQL
# The address of the database server.
address: localhost
# The name of the database to connect to or create.
database: test
# The username for the database connection.
username: root
# The password for the database connection.
password: ''
# SSL options (turned off by default)
properties: '?useSSL=false&requireSSL=false&verifyServerCertificate=false'
# Connection pool settings (for MySQL only).
pool-settings:
maximum-pool-size: 10
maximum-idle: 10
maximum-lifetime: 1800000
keeplive-time: 0
connection-timeout: 5000
# Statement cache properties (optional)
# These settings are used to optimize statement preparation and caching.
# These should be specified for MySQL to improve performance.
statement-cache-settings:
cachePrepStmts: true
prepStmtCacheSize: 250
prepStmtCacheSqlLimit: 2048
# A prefix used for table names in the database.
prefix: 'lr_'
https://github.com/AlbusThePenguin/Lockers/commit/5cb1892ea38c3b42adedadafbc0992fc29c75b7d