Wiki 9Minecraft Wiki 9Minecraft
Mongodb Loader Plugin Wiki › Guides › Prevent Database Errors When Saving Large Data

Prevent Database Errors When Saving Large Data

Understand the Problem

When plugins try to save large amounts of data—like player inventories, statistics, or economy balances—the server can crash or throw errors if database tools aren't properly loaded. MongoDB Loader Plugin prevents this by ensuring all necessary database files are ready before any plugin attempts to write data.

Ensure Proper Plugin Loading Order

1. Confirm MongoDB Loader Plugin is in your server's plugins folder

2. In any plugin that saves data, add depend: [MongoDBLoader] to its plugin.yml

3. Restart the server

The server now guarantees MongoDB Loader Plugin loads before your data-saving plugin. This eliminates timing errors where a plugin tries to access database functions before they're available.

Monitor for Issues

After restart, check your server logs for database connection messages. If errors still appear, verify that MongoDB Loader Plugin loaded successfully—it should appear in the plugin list without errors.