I'm excited to introduce version 3.1 of the plugin, bringing improved functionality, performance, and new possibilities! Here’s what’s new:
1. Goals: A New Era Replacing Groups
- File-Based Goals: Goals are now managed via individual YAML configuration files for greater flexibility and customization.
- Each goal includes its own message, sound, activation status, commands, permissions and group assignments, continuing the seamless integration with LuckPerms.
- New Commands System: Assign commands to execute automatically when players achieve specific goals.
- New Goal Management Command: Use /playtimegoal to open a fully revamped GUI for personalizing and managing your goals effortlessly.
2. Reset Command for Playtime Data
- Introduced the /playtime <playername> reset command to completely reset a player’s playtime data:
- Database records
- Goals achieved
- Playtime statistic registered by the server
- You can use * in place of <playername> to reset all players’ data stored in the play_time database.
3. Optimized Performance with Caching and Data Persistance
- Placeholders now update faster without querying the database every time.
- Cache is automatically cleared every 6 hours to maintain optimal memory performance.
- Online user data is automatically saved to the database every 5 minutes, reducing the potential loss of playtime data to a maximum of 5 minutes in case of a server crash.
Automatic Database Migration with Backup
- The plugin will handle your database migration to version 3.1 automatically.
- A backup compatible with version 3.0.4 will be created to ensure data safety in case of any issues.