-
Notifications
You must be signed in to change notification settings - Fork 0
MySQL Setup
This guide will help you connect BeaconPlus to a MySQL database, which is required if you want beacon data to be synced across multiple servers (e.g., a BungeeCord/Velocity network).
- A MySQL or MariaDB server.
- A database created for BeaconPlus (e.g.,
beaconplus_db). - A user with full permissions for that database.
Open plugins/BeaconPlus/storage.yml on all your servers.
Storage:
Beacon Storage Type: MYSQL
MySQL:
Host: your.mysql.host
Port: 3306
Database Name: beaconplus_db
Username: your_user
Password: your_password
Players Table: "beacon_players"
Beacons Table: "beacons_data"
Use SSL: false
Auto Reconnect: trueWhen using MySQL, changes made on one server (like upgrading an effect) will be saved to the database. However, other servers need to know when to refresh their local cache.
BeaconPlus handles this automatically via database polling.
Note
For instantaneous sync, ensure all servers are connected to same database and the players_table and beacons_table names match exactly.
If you are moving from SQLITE or FILE to MYSQL, you will currently need to use an external database migration tool or manually re-import your data.
- Consistency: Players' beacon levels and access lists remain the same regardless of which sub-server they are on.
- Performance: Offloads data management to a dedicated database engine, reducing load on the main Minecraft thread.
-
Backups: Standard MySQL backup tools (like
mysqldump) can be used to secure your plugin data.
- Connection Refused: Check your host, port, and ensure your MySQL server allows remote connections (if not on localhost).
- Access Denied: Double-check your username and password.
-
Table Creation Error: Ensure the database user has
CREATEpermissions.
Beacon.yml
All Beacon Effects
- 1. Potion Effect
- 2. Immortality Field
- 3. Potion Duration Boost
- 4. Flight
- 5. Magnet
- 6. Spawner Boost
- 7. Crops Boost
- 8. Keep Chunk Loaded
- 9. Apply Mending
- 10. Command Executor
- 11. Glow
- 12. Attribute Modifier
- 13. Cooldown Reduction
- 14. EXP Boost
- 15. EXP Gain
- 16. Extra Power
- 17. Extra Range
- 18. Fire Control
- 19. Furnace Boost
- 20. Permission
- 21. Prevent Mob Spawning
- 22. Saturation
- 23. Stupid AI