Minecraft plugin · 2025

DonationSocket

Paper plugin that receives donation notifications over a TCP socket and rewards the player in game.

DonationSocket emblem: a plug feeding a coin with a heart

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

  1. 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.

  2. Act on the donation

    A payload carries the username, amount, package, and token. The plugin fills those values into the broadcast message and the command list, then runs them on the server.

  3. 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
  • Java
  • Paper API
Build
  • Maven