Minecraft plugin · 2025
DonationSocket
Paper plugin that receives donation notifications over a TCP socket and rewards the player in game.
Overview
DonationSocket connects a donation service to a Minecraft server. It listens on a TCP socket for a JSON payload, then broadcasts a thank-you message, runs the configured commands such as granting a rank, logs the donation, and can play a random sound.
How it works
-
Accept only trusted senders
The plugin listens on a configurable port and checks every connection against an IP whitelist and a shared token before it reads the payload.
-
Act on the donation
A payload carries the
username,amount,package, andtoken. The plugin fills those values into the broadcast message and the command list, then runs them on the server. -
Keep a record
Every donation is appended to
donations.yml, so staff can check what was delivered.
Highlights
-
Two checks
IP whitelist plus token, so a scanner hitting the port cannot trigger rewards.
-
Instant rewards
Ranks and packages are granted the moment the payment notification arrives.
Tech stack
- Plugin
- Build