OPShield
๐ก Updated this yearPreview

๐ Analysis
- ๐ #346 of 1317 bukkit mods in this game by downloads
๐ About This Mod
<div align="center"> # ๐ก๏ธ OPShield **Advanced security & command protection plugin for Paper 1.21+** (https://img.shields.io/badge/Version-2.0.0-blue)]() (https://img.shields.io/badge/Paper-1.21%2B-blue?logo=papermc)]() (https://img.shields.io/badge/Java-21%2B-orange?logo=openjdk)]() (https://img.shields.io/badge/License-Apache%202.0-green)]() *Protect your server from abuse โ secure OP access, track every action, stop attackers instantly.* </div> --- ## ๐ Table of Contents - โจ Features - ๐ Security System - ๐ Audit & Logging - ๐ฆ Requirements - ๐ Installation - โจ๏ธ Commands & Permissions - ๐ง Configuration - ๐ Troubleshooting - โ FAQ - ๐ Credits --- # โจ Features ## ๐ OP Protection - Password-gated `/op` and `/deop` โ no password, no privilege changes - **Async PBKDF2 verification** โ password hashing runs off the main thread; zero TPS impact even under brute-force attack - **Authenticated session tokens** โ after one successful login, a configurable session window lets admins skip re-entering the password (`security.session_timeout_minutes`, default 30 min) - **Session cleared on disconnect** โ sessions are never carried across reconnections - **Global auth concurrency cap** โ server-wide PBKDF2 operations capped at 4 concurrent verifications to prevent CPU saturation under mass attack - PBKDF2-HMAC-SHA256 hashed storage โ plaintext never kept in config - Configurable PBKDF2 iteration count (`security.password.pbkdf2_iterations`) - Automatic migration from legacy plaintext and SHA-256 hashes - **Auto-upgrade legacy hashes** โ on next successful login, SHA-256 is silently replaced with PBKDF2 (`security.password.auto_upgrade_legacy_hash`) - Console warning if a legacy SHA-256 hash is detected on startup - OP whitelist โ restrict `/op` to a predefined set of player names --- ## ๐ซ Sensitive Command Protection - Block dangerous commands for non-OP players (`blocked_commands`) - Optionally block commands even for OP players (`blocked_op_commands`) - Block entire command namespaces via prefix list (`blocked_command_prefixes`) - Alias and namespace resolution โ bypass attempts via `minecraft:op` or plugin aliases are caught - Per-player bypass permission (`opshield.bypass`) for trusted staff --- ## ๐ง Brute-force Detection & Lockout - Configurable failed-attempt limit before lockout (`security.lockout.max-attempts`) - Exponential backoff โ each offence doubles the lockout duration - Optional IP-mirrored lockout (`security.lockout.track_ip`) - Lockout count decay after a cooling-off period (`security.lockout.count_decay_hours`) - Persistent tracking โ lockout state survives server restarts - Manual unlock via `/opshield unlock <player|ip>` --- ## ๐ต๏ธ Shadow Ban System - Sensitive blocked commands send a fake success message instead of an error - Each trigger increments the player's hidden shadow-ban level - Level persists across restarts - Auto-escalates to real punishment when `shadow_ban.auto_punish_level` is reached - Set `auto_punish_level: 99` to keep decoy behaviour without escalation - Fake messages come from language files โ fully customisable per locale --- ## โ ๏ธ Auto Punishment System - Punishment modes: `kick`, `ban`, `ban-ip`, `firewall`, `custom` - Persistent rolling-window threshold โ survives restarts and crashes - Firewall mode runs an OS script asynchronously via `ProcessBuilder` with configurable timeout - Custom mode supports `{player}` and `{ip}` placeholders - IP-limit auto-punishment for accounts detected sharing the same IP --- ## ๐ Multi-Language Support - Bundled language files: **English** (`en`), **Vietnamese** (`vn`), **Russian** (`ru`) - Automatic fallback to English for any missing key - Switch language via `language: "en"` in `config.yml` --- # ๐ Audit & Logging - Every privilege change, password failure, command block, and punishment is logged - Async queue โ log writes never touch the main thread - **Queue capacity limit** โ `audit.max_queue_size` prevents OOM if disk writes fail for extended periods - **Dual output format** โ `audit.format: plain` (default human-readable) or `audit.format: json` (machine-readable, one JSON object per line) - **UTF-8 safe** โ uses NIO `Files.write()` with explicit charset - **Retry on failure** โ failed writes are re-queued instead of silently discarded - Configurable rotation: `audit.max_file_size_mb` and `audit.log_retention` (up to N backup files) - Optional console mirror: `audit.console_output: true` - Log files: `plugins/OPShield/audit.log`, `audit.log.1` โฆ `audit.log.N` --- # ๐ฆ Requirements | Component | Version | |-----------|---------| | Java | 21+ | | Paper | 1.21+ | | Folia | โ Not supported | --- # ๐ Installation 1. Download the plugin `.jar` 2. Drop it into your server's `plugins/` folder 3. Start the server โ OPShield will generate a random password and print it **once** in the console 4. Save the password somewhere safe (it is on
# ๐ก๏ธ OPShield
Advanced security & command protection plugin for Paper 1. 21+
[!(https://img.shields.io/badge/Version-2. 0. 0-blue)]() [!(https://img.shields.io/badge/Paper-1. 21%2B-blue?logo=papermc)]() [!(https://img.shields.io/badge/Java-21%2B-orange?logo=openjdk)]() [!(https://img.shields.io/badge/License-Apache%202. 0-green)]()
Protect your server from abuse โ secure OP access, track every action, stop attackers instantly.
## ๐ Table of Contents
- โจ Features
- ๐ Security System
- ๐ Audit & Logging
- ๐ฆ Requirements
- ๐ Installation
- โจ๏ธ Commands & Permissions
- ๐ง Configuration
- ๐ Troubleshooting
- โ FAQ
- ๐ Credits
# โจ Features
## ๐ OP Protection
- Password-gated `/op` and `/deop` โ no password, no privilege changes
- Async PBKDF2 verification โ password hashing runs off the main thread; zero TPS impact even under brute-force attack
- Authenticated session tokens โ after one successful login, a configurable session window lets admins skip re-entering the password (`security.session_timeout_minutes`, default 30 min)
- Session cleared on disconnect โ sessions are never carried across reconnections
- Global auth concurrency cap โ server-wide PBKDF2 operations capped at 4 concurrent verifications to prevent CPU saturation under mass attack
- PBKDF2-HMAC-SHA256 hashed storage โ plaintext never kept in config
- Configurable PBKDF2 iteration count (`security.password.pbkdf2_iterations`)
- Automatic migration from legacy plaintext and SHA-256 hashes
- Auto-upgrade legacy hashes โ on next successful login, SHA-256 is silently replaced with PBKDF2 (`security.password.auto_upgrade_legacy_hash`)
- Console warning if a legacy SHA-256 hash is detected on startup
- OP whitelist โ restrict `/op` to a predefined set of player names
## ๐ซ Sensitive Command Protection
- Block dangerous commands for non-OP players (`blocked_commands`)
- Optionally block commands even for OP players (`blocked_op_commands`)
- Block entire command namespaces via prefix list (`blocked_command_prefixes`)
- Alias and namespace resolution โ bypass attempts via `minecraft:op` or plugin aliases are caught
- Per-player bypass permission (`opshield.bypass`) for trusted staff
## ๐ง Brute-force Detection & Lockout
- Configurable failed-attempt limit before lockout (`security.lockout.max-attempts`)
- Exponential backoff โ each offence doubles the lockout duration
- Optional IP-mirrored lockout (`security.lockout.track_ip`)
- Lockout count decay after a cooling-off period (`security.lockout.count_decay_hours`)
- Persistent tracking โ lockout state survives server restarts
- Manual unlock via `/opshield unlock
`
## ๐ต๏ธ Shadow Ban System
- Sensitive blocked commands send a fake success message instead of an error
- Each trigger increments the player's hidden shadow-ban level
- Level persists across restarts
- Auto-escalates to real punishment when `shadow_ban.auto_punish_level` is reached
- Set `auto_punish_level: 99` to keep decoy behaviour without escalation
- Fake messages come from language files โ fully customisable per locale
## โ ๏ธ Auto Punishment System
- Punishment modes: `kick`, `ban`, `ban-ip`, `firewall`, `custom`
- Persistent rolling-window threshold โ survives restarts and crashes
- Firewall mode runs an OS script asynchronously via `ProcessBuilder` with configurable timeout
- Custom mode supports `{player}` and `{ip}` placeholders
- IP-limit auto-punishment for accounts detected sharing the same IP
## ๐ Multi-Language Support
- Bundled language files: English (`en`), Vietnamese (`vn`), Russian (`ru`)
- Automatic fallback to English for any missing key
- Switch language via `language: "en"` in `config.yml`
# ๐ Audit & Logging
- Every privilege change, password failure, command block, and punishment is logged
- Async queue โ log writes never touch the main thread
- Queue capacity limit โ `audit.max_queue_size` prevents OOM if disk writes fail for extended periods
- Dual output format โ `audit.format: plain` (default human-readable) or `audit.format: json` (machine-readable, one JSON object per line)
- UTF-8 safe โ uses NIO `Files.write()` with explicit charset
- Retry on failure โ failed writes are re-queued instead of silently discarded
- Configurable rotation: `audit.max_file_size_mb` and `audit.log_retention` (up to N backup files)
- Optional console mirror: `audit.console_output: true`
- Log files: `plugins/OPShield/audit.log`, `audit.log. 1` โฆ `audit.log. N`
# ๐ฆ Requirements
| Component | Version | |-----------|---------| | Java | 21+ | | Paper | 1. 21+ | | Folia | โ Not supported |
# ๐ Installation
1. Download the plugin `.jar` 2. Drop it into your server's `plugins/` folder 3. Start the server โ OPShield will generate a random password and print it once in the console 4. Save the password somewhere safe (it is on
๐ Mod Details
- Game
- Minecraft Plugins
- Author
- Duong2012G
- Version
- 2.0.0
- Downloads
- 294
- Endorsements
- 1
- Category
- bukkit
- Created
- 3/11/2026
- Updated
- 6/4/2026
- Game Versions
- 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4
- Tags
- management
๐ง How to Install Minecraft Plugins Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
๐ Full step-by-step install guide for Minecraft Plugins โ
Visit the official mod page for specific installation instructions for this mod.
๐ฎ Need cheat codes or console commands? Check ur gaming wiki for Minecraft Plugins commands, item IDs, and more.
โ Frequently Asked Questions
Which Minecraft Plugins versions does OPShield support?
The author lists 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5. Other versions may work but are untested by the author.
What is the latest version of OPShield?
Version 2.0.0, published 2026-06-04 with 294 downloads recorded at the source.
Keep browsing โ more Minecraft Plugins mods await