You can now choose whether BalSync messages appear in chat or the action bar!
Simply set `message-display: "actionbar"` in your `config.yml` (under `settings`).
Keep it as `"chat"` (default) for the classic experience.
This works for all player notifications, including:
- Balance sync on join
- External balance changes
- Command responses (`/balsync reload`, etc.)
Enjoy a cleaner chat experience!
## Added
- New config option `settings.log-save-all-messages` (default: `true`) to control whether the console messages "Saving all player balances to database..." and "Saved X player balances to database." are printed. Set to `false` to silence them.
This release fixes a critical SQL syntax error and adds two new configuration options to give you more control over logging and player notifications.
## Bug Fixes
- **Fixed table creation error** on MariaDB/MySQL caused by a `DEFAULT` value with decimals in the `balance` column.
The table is now created without a default value – the starting balance is set via the plugin logic as before.
(Error message: *"You have an error in your SQL syntax; check the manual … near '00,"*)
## ✨ New Features
### 1. Toggle console logs
Added `log-balance-actions` (default: `true`) to `config.yml`.
When set to `false`, the following messages will no longer appear in the console:
- `Reset balance to 0 for <player>`
- `Balance loaded for <player>: <amount> (from DB)`
- `Applied external DB change for <player>: <amount>`
- `Detected offline change for <player> ...`
### 2. Toggle player sync message
Added `notify-player-on-sync` (default: `true`) to `config.yml`.
If you don’t want players to see the message *"Your balance has been synchronized with the database."* on every join, set this to `false`.