-
Notifications
You must be signed in to change notification settings - Fork 0
Storage Backend
github-actions[bot] edited this page Jan 3, 2026
·
6 revisions
BeaconPlus is designed to handle thousands of beacons and millions of player data points. However, the performance and reliability of your server depend heavily on selecting and configuring the right storage backend. This document provides a proactive, deep-technical guide to managing your data.
BeaconPlus uses two separate storage definitions to allow for hybrid setups:
- Player Storage: Stores discovered effects, activation states, and individual settings.
- Beacon Storage: Stores the physical location, power level, tiers, and modes of every beacon in the world.
- Mechanics: Data is saved as small JSON/YAML files directly within the world folder of your Minecraft server.
- Proactive Note: This is the "Gold Standard" for single-server setups. If you delete a world folder or move it to a different server, the beacon data stays with it naturally.
- Limitation: Cannot be synchronized across a network (Bungeecord/Velocity).
-
Mechanics: Saves all data into the
plugins/BeaconPlus/Playersorplugins/BeaconPlus/Beaconsdirectories. - Performance: Excellent for small to medium servers (up to 50 active players).
- Caution: As the number of files grows into the thousands, your OS file system might experience slowness when listing directories.
-
Mechanics: Uses a single
.dbfile (a relational database) to store all beacon data. - Performance: Highly efficient. SQL allows the plugin to "search" for beacons much faster than reading individual flat files.
- Use Case: The best middle ground for large single servers that want performance without the complexity of a remote MySQL server.
- Mechanics: Uses a dedicated database server. Required for cross-server synchronization.
- Scaling: Theoretically infinite. Can handle networks with thousands of simultaneous players.
- Requirement: Requires a stable connection. If the database goes down, your beacons stop working.
Changing your Storage.Type or Storage.Beacon Storage Type does not automatically move your data. Follow this protocol to avoid data loss:
- Stop the Server: Never change storage settings while the server is running.
-
Full Backup: Copy your entire
BeaconPlusplugin folder to a safe location. -
Manual Migration:
- Currently, there is no built-in "Migration Tool" for moving between SQL and FILE backends.
- If you are moving from FILE to MYSQL, you must manually import the data or start fresh.
- Proactive Advice: Only change backends during a server "Season Reset" unless you have high-level technical expertise in SQL data importing.
-
Update Config: Change the values in
storage.yml. - Restart & Verify: Monitor the console for "Uses [TYPE] data storage" confirmation messages.
| Server Type | Player Count | Recommended Player Storage | Recommended Beacon Storage |
|---|---|---|---|
| Private / SMP | 1 - 20 | FILE |
WORLD |
| Large Hub / Factions | 50 - 200 |
FILE or MYSQL
|
SQLITE |
| Massive Network | 500+ | MYSQL |
MYSQL |
If the plugin prints "Failed to connect to MySQL server", check these proactively:
- Host/Port: Ensure the address is correct and the port (standard 3306) is open in your firewall.
-
Wait Timeout: Some hosts kill inactive SQL connections. Set
Auto Reconnect: trueinstorage.yml. -
SSL: If your DB host requires SSL (or forbids it), toggle
Use SSL. -
Permissions: The DB user must have
CREATE,SELECT,INSERT,UPDATE, andDELETEpermissions on the table.
-
Avoid VOID: Setting any storage to
VOIDmeans data is only kept in RAM while the server is up. ALL PROGRESS WILL BE LOST ON RESTART. Only use this for temporary "Event" servers. -
Cleanup: If you use
FILEstorage and have many players who haven't logged in for years, you can safely delete their.ymlfiles from thePlayersdirectory to save disk space. - Hikari Pool: For SQL backends, BeaconPlus uses HikariCP for high-performance connection pooling. Do not try to manually adjust these settings in the Java code unless you are an experienced developer.
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