Getting Started
This guide walks through the first working setup for Spigot Sales Webhook.
Requirements
Section titled “Requirements”You need:
- Java 25 if you run the worker directly
- a Discord webhook URL
- a valid SpigotMC cookie with access to your premium resource buyer pages
- at least one SpigotMC premium resource buyer-list URL
Create the Config File
Section titled “Create the Config File”Copy the example config and fill in your private values.
Copy-Item src/main/resources/config.example.yml src/main/resources/config.ymlcp src/main/resources/config.example.yml src/main/resources/config.ymlsrc/main/resources/config.yml is ignored by git.
Add Your First Resource
Section titled “Add Your First Resource”Open src/main/resources/config.yml and configure one resource under spigot.plugins.
discord: webhook-url: "https://discord.com/api/webhooks/your-webhook-id/your-webhook-token" username: "Spigot Sales"
spigot: cookie: "xf_session=...; xf_user=...; xf_tfa_trust=..." request-delay-ms: 800 plugins: - name: "My Premium Plugin" buyer-list-url: "https://www.spigotmc.org/resources/my-premium-plugin.12345/buyers"
scan: interval-minutes: 60 notify-existing-on-first-run: false state-file: "data/seen-sales.json"The buyer-list-url should point to the resource’s buyers page. The cookie must belong to an account that can see that page.
Build the Worker
Section titled “Build the Worker”gradlew.bat clean jar./gradlew clean jarThe built jar is created under build/libs/.
Run a Test Scan
Section titled “Run a Test Scan”Run one scan and exit:
java -jar build/libs/spigot-sales-webhook-1.0.0.jar --onceBy default, the first scan records existing buyers without notifying Discord. This prevents a noisy first setup when a resource already has buyers.
To send notifications for existing buyers during a one-off run, set scan.notify-existing-on-first-run to true first:
scan: notify-existing-on-first-run: trueThen run the one-off scan:
java -jar build/libs/spigot-sales-webhook-1.0.0.jar --onceRun Continuously
Section titled “Run Continuously”Start the worker without --once:
java -jar build/libs/spigot-sales-webhook-1.0.0.jarIt immediately runs a scan, then waits scan.interval-minutes before the next scan.