Plugin Configuration
Plugin Configuration Guide
Section titled “Plugin Configuration Guide”Learn how to configure the Statsly plugin for optimal performance and data collection.
Configuration File
Section titled “Configuration File”The plugin creates a config.yml file in your server’s plugins/Statsly directory on first run.
Basic Configuration
Section titled “Basic Configuration”api: # Your setup code from the dashboard code: XXXX-XXXX-XXXX
# API endpoint (usually doesn't need to be changed) url: https://api.statsly.org
# Statistics collection settingsstatistics: # How often to send statistics to the API (in seconds) interval: 60
# Enable/disable peak player tracking track-peak: true
# Enable/disable average player tracking track-average: trueConfiguration Options
Section titled “Configuration Options”API Settings
Section titled “API Settings”code(required): Your unique setup code from the dashboard. Format:XXXX-XXXX-XXXXurl(optional): API endpoint URL. Default:https://api.statsly.org
Statistics Settings
Section titled “Statistics Settings”-
interval(optional): How often statistics are sent to the API in seconds. Default:60(1 minute)- Minimum:
30seconds - Maximum:
300seconds (5 minutes) - Lower intervals provide more detailed data but increase API calls
- Minimum:
-
track-peak(optional): Enable peak player count tracking. Default:true- When enabled, tracks the highest player count during each interval
-
track-average(optional): Enable average player count tracking. Default:true- When enabled, calculates average player count over each interval
Advanced Configuration
Section titled “Advanced Configuration”Performance Optimization
Section titled “Performance Optimization”For servers with many players or limited resources:
statistics: # Increase interval to reduce API calls interval: 120 # 2 minutes
# Disable average tracking if not needed track-average: falseHigh-Detail Tracking
Section titled “High-Detail Tracking”For detailed analytics:
statistics: # Shorter interval for more data points interval: 30 # 30 seconds
# Enable both tracking types track-peak: true track-average: trueConnection Process
Section titled “Connection Process”- Plugin Startup: The plugin validates your setup code on startup
- Code Validation: The plugin sends a validation request to the API
- Pending Connection: A pending connection is created in your dashboard
- Confirmation: You must confirm the connection in your dashboard
- Active Connection: Once confirmed, statistics start being collected
Check your server console for connection status messages. The plugin will log connection attempts and any errors.
Troubleshooting
Section titled “Troubleshooting”Plugin Not Connecting
Section titled “Plugin Not Connecting”- Verify your setup code is correct
- Check that your server has internet access
- Ensure no firewall is blocking outbound connections
- Check server logs for error messages
Statistics Not Sending
Section titled “Statistics Not Sending”- Verify the plugin is loaded (use
/pluginscommand) - Check the
intervalsetting is not too high - Review plugin logs for errors
- Ensure the server is running and has players
Configuration Errors
Section titled “Configuration Errors”If the plugin fails to load:
- Check YAML syntax in
config.yml - Ensure all required fields are present
- Verify the setup code format is correct
- Check server logs for specific error messages
Best Practices
Section titled “Best Practices”- Keep your setup code private: Don’t share it publicly
- Use appropriate intervals: Balance between detail and performance
- Monitor plugin performance: Check logs regularly
- Update regularly: Keep the plugin updated for best performance
Support
Section titled “Support”If you’re experiencing issues:
- Check the Quick Start Guide for setup instructions
- Review Server Management for dashboard features
- Open a support ticket for assistance