autosaveIntervalMinutes

The interval in minutes between automatic data saves.

This property controls how frequently the plugin automatically saves player data to the database. Regular autosaves help prevent data loss in case of server crashes or unexpected shutdowns.

Autosave Functionality:

  • Saves all cached player data to the database

  • Includes player statistics, inventory, and plugin-specific data

  • Operates asynchronously to minimize server performance impact

  • Provides data safety net beyond manual saves and logout saves

Interval Considerations:

  • Shorter intervals: Better data protection, higher server load

  • Longer intervals: Lower server load, higher risk of data loss

  • Very short intervals (< 1 minute) may cause performance issues

  • Very long intervals (> 30 minutes) increase data loss risk

Default Value: 5 minutes (balanced protection and performance)

Configuration Key: "settings.autosave_interval_minutes"

Recommended Values:

  • High-activity servers: 2-5 minutes

  • Medium-activity servers: 5-10 minutes

  • Low-activity servers: 10-15 minutes

  • Development/testing: 1-2 minutes

Performance Impact:

  • Database write operations during autosave

  • Temporary increase in memory usage during save operations

  • Potential brief lag spikes on servers with many players

  • I/O load on database server during save operations

Data Safety:

  • Autosaves complement but don't replace logout saves

  • Critical data changes should trigger immediate saves

  • Server shutdown should always trigger a final save

Since

1.0.0