
ProtectCodes
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on Modrinth
ProtectCodes 🔐
ProtectCodes is a lightweight yet powerful Paper/Spigot plugin for Minecraft 1.21+ that adds an extra layer of security for server staff and selected players. It generates one‑time codes, sends them to Discord via webhook, and requires players to enter the code before they can move or use commands.
Perfect for administrators who want to protect their accounts from hijacking or unauthorized access.
✨ Features
🔑 One‑time codes generated on player join
📩 Discord webhook integration — codes are sent directly to your Discord channel
⏳ Session system — configurable session time, no code required if IP and session are still valid
🚫 Movement & command lock until the correct code is entered
⚙️ Configurable punishments after a set number of failed attempts (kick, ban, custom commands)
🎨 Customizable prefix for all plugin messages
✅ Permission system for fine‑grained control
⚙️ Configuration
prefix: "&7[&aProtectCodes&7] "
discord-webhook: "https://discord.com/api/webhooks/XXX/YYY"
players:
Rodion: 6
AnotherPlayer: 8
session-time: 30
block-movement: true
block-commands: true
allowed-commands:
- code
max-attempts: 3
punish-commands:
- "kick %player% Invalid authorization"
🔒 Permissions

- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.2
- 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 ProtectCodes-1.2.0.jar — drop this file into the mods folder
- Download size: 15 KB
- Download link checked 3 Oct 2026 — working
These come from our own check of the pack file, not from the source page.