Death Swap Guides

Death Swap · Release 3.0.1

Website Integration

The plugin writes plugins/DeathSwap/web/leaderboards.json for a website to consume. It contains public leaderboard UUID, player name, wins, fastest winning duration and formatted time for Classic/Kit, with wins/time rankings for each. It excludes inventories, balances, IP addresses and authentication tokens. schemaVersion remains 1; pluginVersion is 3.0.1. Existing receiver/display examples remain in website/.

website:
  enabled: true
  refresh-seconds: 30
  top-players: 100
  upload:
    enabled: false
    url: ''
    token: ''

Local export is enabled by default and refreshed after results and on the interval. No server port is opened. Copy the JSON to your web host with your deployment tooling, or enable the optional authenticated upload to your own HTTPS receiver. The receiver URL must have no username/password, query or fragment. Tokens use 32–256 letters, digits, underscores or hyphens. Generate a strong random secret; keep it out of browser JavaScript and public downloads. The Authorization header is Bearer <token>.

Uploads default off. No activation, customer ID, phone-home protection or remote disable mechanism is added. Website uploads are an explicit owner-configured statistics feature. Delivery is coalesced on a background worker with timeouts and no redirect following. Logs redact credentials and throttle failures. A failure retries on a later refresh; matches do not wait for the web host. Disabling export stops new jobs; an already-running delivery may complete.

On the website, render player names as text, not raw HTML; validate authentication, request size and schema at the receiver, use atomic writes and serve only the public JSON. The example receiver is a starting point for your host, not an installed service. Use /ds reload while idle after settings changes. This update does not deploy or change your website.