-
Notifications
You must be signed in to change notification settings - Fork 0
Storage Backend
BeaconPlus handles two types of data: Player Data (discovered effects, personal settings) and Beacon Data (location, power level, tiers). You must choose where to save this information based on your server size and need for cross-server synchronization.
This saves beacon data directly inside your Minecraft world folder (in data/beacons).
Best For:
- Single Servers: It keeps the beacon data physically with the map. If you download the world and move it to singleplayer or another server, the beacons stay working perfectly.
The Catch:
- No Sync: You cannot share this data across multiple servers (Bungee/Velocity).
- Resets: If you reset your world folder, you lose all beacon data.
This saves data as simple .yml files in the plugins/BeaconPlus/ folder.
Best For:
- Small/Medium Servers: Easy to edit manually. Easy to backup.
- Debugging: You can open a player's file and read exactly what effects they have unlocked.
The Catch:
- Performance: If you have 10,000+ folders, your operating system will struggle to open the folder quickly.
- IO Lag: Saving thousands of files at once during a shutdown can take a few seconds.
This uses a single high-performance .db file on your disk.
Best For:
-
Large Single Servers: Much faster than
FILEstorage for reading/writing thousands of beacons. - Stability: Prevents file corruption issues that can happen with thousands of tiny YAML files.
The Catch:
- Not Human Readable: You cannot just open the file to edit a beacon. You must use a database viewer (like DB Browser for SQLite).
This connects to an external database server (like MariaDB or MySQL).
Best For:
- Networks (Bungee/Velocity): Required if you want a player's unlocked effects to follow them from Survival-1 to Survival-2.
- Massive Scale: Can handle millions of rows without slowing down the Minecraft server.
The Catch:
- Complexity: Requires you to set up and pay for a database host.
- Dependency: If your SQL database crashes, BeaconPlus stops working entirely.
| Server Type | Player Count | Player Storage | Beacon Storage | Why? |
|---|---|---|---|---|
| SMP / Private | 1 - 30 | FILE |
WORLD |
simplest backup. Beacons move with the world map. |
| Towny / Factions | 50 - 200 | FILE |
SQLITE |
Fast performance for beacons, but keeps player data editable. |
| Bungee Network | 500+ | MYSQL |
MYSQL |
Full synchronization across all sub-servers. |
Changing your storage backend does not automatically move your old data. If you switch from FILE to MYSQL, the plugin will start empty.
How to migrate safely:
- Stop the Server. Never change storage settings while running.
-
Backup: Copy your
BeaconPlusfolder. -
Configure: Edit
storage.ymlto the new type. -
Manual Import:
- There is no automatic converter. If you are moving to MySQL, you usually start fresh or need a developer to export your YAML data to SQL.
- Tip: Only switch backends during a "Season Reset" or maintenance window.
If you see "Failed to connect" errors, check these common issues:
-
Firewall: Is port
3306open on the database host? -
Timeout: Set
Auto Reconnect: truein yourstorage.ymlto prevent the connection from dying overnight. -
SSL: Try toggling
Use SSLtofalseif your host uses a self-signed certificate. -
Permissions: The database user needs
SELECT,INSERT,UPDATE,DELETE, andCREATErights.
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