Skip to content

Configuration

Configure NameMC Sniper for optimal performance with the config.yaml file.

🔧 Configuration File Structure

The configuration file is organized into several sections:

debug_mode: true
discord:
  embed_color: 65280
  enabled: true
  mention_role_id: 'mention_role_id'
  webhook_url: 'Discord_webhook_url'
log_level: INFO
notifications:
  intervals:
  - 86400
  - 43200
  - 21600
  - 7200
  - 3600
  - 1800
  - 300
  - 60
  - 30
proxy:
  enabled: true
  max_retries: 3
  proxies:
  - "http://username:password@proxy1.example.com:8080"
  - "http://username:password@proxy2.example.com:8080"

  rotation_enabled: true
  timeout: 10
snipe:
  bearer_token: 'bearer_token_here'
  concurrent_requests: 10
  max_snipe_attempts: 100
  request_delay_ms: 25
  start_sniping_at_seconds: 30

  target_username: 'target_username_here'

âš™ Configuration Sections

Proxy Settings

Configure proxy rotation for improved performance and reliability:

Setting Type Description
enabled boolean Enable/disable proxy usage
proxies list List of proxy URLs
rotation_enabled boolean Enable proxy rotation
timeout integer Proxy timeout in seconds
max_retries integer Maximum retry attempts per proxy

Proxy Formats

  • http://ip:port
  • http://username:password@ip:port
  • https://ip:port
  • socks5://ip:port

Discord Integration

Set up Discord notifications for real-time updates:

Setting Type Description
enabled boolean Enable Discord notifications
webhook_url string Discord webhook URL (recommended)
mention_role_id string Role ID to mention (optional)
embed_color integer Embed color (decimal format)

Snipe Settings

Core sniping configuration:

Setting Type Description
target_username string Username to snipe
bearer_token string Minecraft bearer token
start_sniping_at_seconds integer Seconds before drop to start
max_snipe_attempts integer Maximum snipe attempts
request_delay_ms integer Delay between requests (ms)
concurrent_requests integer Number of concurrent requests
use_multiple_threads boolean Enable multi-threading

Notification Intervals

Customize when to receive countdown notifications:

notifications:
  intervals:
    - 86400  # 24 hours before drop
    - 43200  # 12 hours before drop
    - 21600  # 6 hours before drop
    - 7200   # 2 hours before drop
    - 3600   # 1 hour before drop
    - 1800   # 30 minutes before drop
    - 300    # 5 minutes before drop
    - 60     # 1 minute before drop
    - 30     # 30 seconds before drop

💡 Configuration Tips

Performance Optimization

High-Speed Setup:

snipe:
  request_delay_ms: 10      # Lower delay = faster requests
  concurrent_requests: 20   # More concurrent requests
  use_multiple_threads: true

Conservative Setup:

snipe:
  request_delay_ms: 50      # Higher delay = less aggressive
  concurrent_requests: 5    # Fewer concurrent requests
  use_multiple_threads: false

Proxy Recommendations

  • Use high-quality residential proxies for best results
  • Test proxies regularly with python Main.py test-proxies
  • Rotate proxies to avoid rate limiting
  • Use proxies close to Minecraft servers geographically

âš  Important Notes

Bearer Token Security

Never share your bearer token or commit it to version control. Consider using environment variables:

snipe:
  bearer_token: "${MINECRAFT_BEARER_TOKEN}"

Rate Limiting

Be careful with aggressive settings. Too many requests too quickly may result in rate limiting or IP bans.

✅ Validation

Always validate your configuration after making changes:

python Main.py config-validate

âž¡ Next Steps

Once configured, learn how to get your bearer token in the Authentication guide.