ServerProtect
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on ModrinthServerProtect
A lightweight Velocity proxy protection plugin for blocking usernames before they can connect to your network.
Features
- 🚫 Block players by username
- 🔒 Blocks players before login
- 🔤 Case-insensitive username matching
- 🎨 MiniMessage support
- ⚙️ Configurable kick message
- 🔄 Reload configuration without restarting Velocity
- 📝 Automatic
blocked.txtmanagement - 💻 Console-only management commands
- 📋 View all blocked usernames
- ➕ Ban usernames directly from the Velocity console
- ➖ Unban usernames directly from the Velocity console
- ⚡ Lightweight and dependency-free
Commands
All commands are console-only.
| Command | Description |
|---|---|
/sp ban <username> |
Ban a username |
/sp unban <username> |
Remove a username from the ban list |
/sp list |
List all banned usernames |
/sp reload |
Reload config.toml and blocked.txt |
/sp help |
Show available commands |
/serverprotect can also be used instead of /sp.
Configuration
After the first startup, ServerProtect creates:
plugins/
└── serverprotect/
├── config.toml
└── blocked.txt
config.toml
The kick message uses MiniMessage.
You can use MiniMessage tags such as:
<red>
<green>
<blue>
<gray>
<dark_red>
<bold>
<italic>
<underlined>
<gradient:red:dark_red>
<newline>
blocked.txt
Add one username per line:
# One username per line
Player123
BadPlayer
ExampleUser
Username matching is case-insensitive.
For example, banning:
Player123
also blocks:
player123
PLAYER123
pLaYeR123
How It Works
When a player attempts to connect:
Player
│
▼
Velocity PreLoginEvent
│
▼
Check blocked.txt
│
├── Not blocked ──► Continue login
│
└── Blocked ──────► Kick with MiniMessage
Because the check happens during PreLoginEvent, the player is rejected by the Velocity proxy before reaching a backend server.
Example
Ban a player:
/sp ban ExamplePlayer
Output:
Banned ExamplePlayer.
Check the list:
/sp list
Unban:
/sp unban ExamplePlayer
Reload after manually editing the files:
/sp reload
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as ServerProtect-1.0.jar — drop this file into the mods folder
- Download size: 8 KB
- Download link checked 10 Oct 2026 — working
These come from our own check of the pack file, not from the source page.