Installation -
Sourcemod Plugin
Install and configure the Nexus Donate plugin for Source engine games
Overview
The Nexus Donate SourceMod plugin allows your Source engine game server (CS:GO, TF2, etc.) to communicate with your donation store and execute commands when players make purchases.
Prerequisites
- Source engine game server (CS:GO, TF2, CS:S, etc.)
- SourceMod installed and running
- Server with internet access
- Nexus Donate API key
1. Extracting the plugin
- Download the latest Nexus Donate SourceMod plugin
- Extract the plugin file to your server's
addons/sourcemod/plugins/directory - The plugin file should be named
nexus_donate.smx - Ensure SourceMod is properly installed and running
2. Upload to your server and configure
After uploading the plugin, configure it by editing the addons/sourcemod/configs/nexus_donate.cfg file:
Code
// Nexus Donate Configuration
// Your Nexus Donate API Key
sm_nexus_donate_api_key "your_api_key_here"
// Your Nexus Donate Store URL
sm_nexus_donate_store_url "https://yourstore.com"
// Check interval in seconds
sm_nexus_donate_check_interval "30"
// Enable debug mode
sm_nexus_donate_debug "0"
// Server name
sm_nexus_donate_server_name "Your Server Name"
Configuration Options
- sm_nexus_donate_api_key: Your Nexus Donate API key from the web panel
- sm_nexus_donate_store_url: The URL of your Nexus Donate store
- sm_nexus_donate_check_interval: How often the plugin checks for new donations (in seconds)
- sm_nexus_donate_debug: Enable debug messages (1 = enabled, 0 = disabled)
- sm_nexus_donate_server_name: Your server's display name
3. Reload The Plugin
- Use the command
sm plugins reload nexus_donateto reload the plugin - Alternatively, restart your server to load the plugin
- Check the server console for "Nexus Donate loaded successfully" message
- Look for any error messages related to the plugin
Verification
To verify the installation is working:
- Check the server console for successful plugin loading
- Use the command
sm plugins listto see if Nexus Donate is listed - Test the connection by making a test donation
- Check that commands execute properly when donations are processed
Commands
The plugin provides the following commands:
sm_nexus_donate_reload- Reload the plugin configurationsm_nexus_donate_status- Check the plugin status and connectionsm_nexus_donate_test- Test the API connection
Permissions
The plugin uses the following permissions:
nexus_donate.admin- Access to admin commandsnexus_donate.status- Access to status commands
Troubleshooting
Common issues and solutions:
- Plugin not loading: Check if SourceMod is properly installed
- API connection failed: Verify your API key and store URL
- No donations detected: Check the check interval and server connectivity
- Commands not executing: Verify the command syntax and player permissions
Note: Make sure your server has internet access to communicate with the Nexus Donate API.