OPProtection icon

OPProtection -----

plugin protection with AdminPass/Discord2fa



OPProtection – Advanced OP Account Security for Minecraft Servers

Plugin Overview
OPProtection is an advanced security plugin designed to protect OP accounts on your Minecraft server from spoofing, unauthorized access, and dangerous commands.

✅ Key Features

  • Protect OP accounts using Discord 2FA verification

  • Block access from unauthorized countries (GeoIP)

  • Block dangerous and sensitive commands such as /op, /stop, /execute

  • Emergency mode for high-risk situations

  • Full support for BungeeCord / Velocity environments

  • AuthMe and NLogin integration
[HR]

⚙️ Sample Configuration (config.yml)
Code (Text):


# Anti UUID/IP Spoof

ip-forwarding: false # true nếu server sử dụng Bungee/Velocity forwarding

# Whitelist OP - Thêm tên admin vào đây

op-whitelist:

- ig_cua_ban

op-password: mat_khau_cua_ban # Thay đổi mật khẩu này!

pass-timeout: 50 # Thời gian hết hạn xác minh (giây)

# Chặn tab-complete cho các lệnh nhạy cảm

tab-complete-block:

enabled: true

blocked-commands:

- ver

- version

- about

- bukkit:ver

- bukkit:version

- bukkit:about

- minecraft:ver

- minecraft:version

- minecraft:about

- icanhasbukkit

# Danh sách lệnh bị chặn

disable-commands:

- pl

- plugins

- about

- bukkit

- ver

- version

- icanhasbukkit

- server

- luckperms

- luckperms:lp

- lp

- op

- setblock

- kill

- /sphere

- pt

- powertool

- ept

- execute

- perms

- perm

- permission

# Lệnh được phép khi chưa xác minh OP

allowed-commands:

- login

- register

# Hành động khi đăng xuất (tự động)

logout-actions:

- deop %player%

- lp user %player% permission unset *

- gamemode survival %player%

# Discord Integration

discord:

enabled: true

token: DISCORD_BOT_TOKEN # Thay bằng token bot của bạn!

channel-id: "id_channel"

admin-role-id: "id_admin_role"

verify-role-id: "id_role_verify # ID role "OPProtection Verify" nhớ tạo

use-2fa: true # Bật xác thực 2 lớp

# GeoIP Blocking

geoip:

enabled: true

allowed-countries:

- VN

block-message: '&cQuốc gia của bạn không được phép truy cập server!'

# AuthMe/NLogin Integration

auth-integration:

enabled: true

allow-auth-commands:

- login

- register

- l

- reg

# Emergency Mode

emergency-mode:

enabled: true # TẮT khi không cần thiết!

blocked-commands:

- op

- deop

- stop

- reload

- plugins

- version

- icanhasbukkit

- execute

- setblock

- kill

- sphere

- pt

- powertool

- ept

kick-message: '&cServer đang trong chế độ khẩn cấp! Vui lòng thử lại sau.'

 
⌨️ Commands & Permissions
Command Description Permission

/oppass <password> Verify OP access in-game opprotection.verify

/oppass confirm <player> Verify an OP user from console opprotection.admin

/opreload Reload the plugin configuration opprotection.admin

/opemergency Toggle emergency mode opprotection.admin

Dependencies

  • []ProtocolLib (required)

English Version
OPProtection is a complete OP account protection solution for Minecraft servers. It includes high-level security features to prevent unauthorized access and dangerous command usage.

Key Features

  • Discord 2FA verification for OP accounts

  • Anti UUID/IP spoofing protection

  • Dangerous command blocking

  • GeoIP-based country restrictions

  • Emergency mode support

  • AuthMe/NLogin integration
Configuration
See the Vietnamese section above for the full example config.

Commands & Permissions

  • /oppass <password> — Verify OP in-game (opprotection.verify)

  • /oppass confirm <player> — Verify OP from console (opprotection.admin)

  • /opreload — Reload config (opprotection.admin)

  • /opemergency — Toggle emergency mode (opprotection.admin)
⚠️ Important Notes

  • Replace DISCORD_BOT_TOKEN with your real bot token

  • Change op-password to a strong unique password

  • Disable emergency mode when not needed

  • Configure ip-forwarding correctly if using BungeeCord/Velocity

  • Add all administrators to the OP whitelist
Support: Contact Habitat_ on Discord
Created with ❤️ for the Minecraft community
Resource Information
Author:
----------
Total Downloads: 158
First Release: Aug 23, 2025
Last Update: Nov 20, 2025
Category: ---------------
All-Time Rating:
10 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings