Code (Text):
# DDC Plugin Configuration
# Cấu hình chính của plugin DDC
# Plugin Settings
plugin:
# Debug mode
debug: false
# Messages configuration
messages:
# Enable custom messages from messages.yml
enabled: true
# Language file to use (messages_vi.yml, messages_en.yml, etc.)
language: messages_vi.yml
# Auto-reload messages when config changes
auto-reload: true
# Auto-Deop Settings
auto-deop:
# Bật/tắt tính năng tự động deop khi người chơi rời server
enabled: true
# Bật/tắt tính năng tự động deop khi người chơi vào server
on-join: true
# Ghi log vào console khi deop người chơi
log-to-console: true
# Thông báo cho người chơi khi bị deop
notify-player: true
# Auto-Gamemode Settings
auto-gamemode:
# Bật/tắt tính năng tự động chuyển gamemode từ CREATIVE về SURVIVAL
enabled: true
# Ghi log vào console khi chuyển gamemode
log-to-console: true
# Thông báo cho người chơi khi bị chuyển gamemode
notify-player: true
# 2FA Authentication Settings
2fa-auth:
# Tên hiển thị trong Google Authenticator app
issuer: MinecraftServer
# Thời gian timeout cho xác thực (giây)
timeout: 60
# Số lần nhập sai tối đa trước khi kick
max-attempts: 3
players:
DragonDirt:
secret: VTRO6U4E3T3OUM7WZQKNPCGVNNJHCCYD
enabled: true
# Ví dụ:
# PlayerName:
# secret: "ABCDEFGHIJKLMNOP"
# enabled: true
# Whitelist Checker Settings
whitelist-checker:
# Bật/tắt tính năng kiểm tra whitelist
# Chỉ người trong whitelist 2FA mới được phép có OP và dùng creative mode
enabled: true
# Khoảng thời gian kiểm tra (giây) - mặc định 30 giây (tối ưu để chống hacker)
# Ngoài ra còn check ngay khi: player join, được op, thay đổi gamemode
check-interval: 30
# Ghi log vào console khi deop/thay đổi gamemode
log-to-console: true
# Thông báo cho người chơi khi bị deop/thay đổi gamemode
notify-player: true
# IP Whitelist Settings
ip-whitelist:
# Bật/tắt tính năng IP whitelist
# Người chơi trong whitelist 2FA chỉ có thể login từ IP đã đăng ký
enabled: true
# Lý do ban khi IP không khớp
ban-reason: §c§lTÀI KHOẢN BỊ TẤN CÔNG!\n§e§lIP không khớp với IP đã đăng ký.\n§7Liên
hệ admin nếu bạn là chủ tài khoản.
# Thời gian ban (milliseconds) - 0 = vĩnh viễn
ban-duration: 0
# Thông báo cho admin online khi phát hiện tấn công
notify-admins: true
# Log successful logins
log-success: true
# Admin Command Protection Settings
admin-command-protection:
# Bật/tắt tính năng theo dõi lệnh admin
enabled: true
# Danh sách lệnh cần theo dõi
protected-commands:
- op
- deop
- gamemode
- give
- tp
- ban
- kick
- whitelist
- pardon
- whitelist add
- whitelist remove
# Yêu cầu 2FA cho các lệnh được bảo vệ (chưa implement)
require-2fa-for-protected: false
# Ghi log tất cả lệnh admin vào console
log-all-admin-commands: true
# Thông báo khi dùng lệnh quan trọng (op, ban, kick, whitelist)
# Lưu ý: TẤT CẢ lệnh trong protected-commands đều được gửi Discord webhook
notify-on-critical-commands: true
# Discord Webhook Settings
discord:
# Bật/tắt Discord webhook notifications
enabled: false
# Discord Webhook URL
# Hướng dẫn tạo:
# 1. Vào Discord server → Click chuột phải vào channel
# 2. Edit Channel → Integrations → Webhooks → Create Webhook
# 3. Copy Webhook URL và paste vào đây
webhook-url: YOUR_WEBHOOK_URL_HERE
# Tên server hiển thị trong Discord
server-name: Minecraft Server
️ DDC - DragonDirtCore | Advanced Security Plugin
High-level security plugin for Minecraft servers with 2FA system and multi-layer protection!
Main Features:
2FA Authentication System
- Google Authenticator integration
- Mandatory two-factor authentication for admins
- Auto-kick if authentication fails
- Automatic QR Code generation for easy setup
️ Whitelist Protection System
- Only whitelisted 2FA users can have OP permissions
- Auto-deop and switch to survival for non-whitelisted users
- Periodic checks every 30 seconds (async, no server lag)
- Block /op command for non-whitelisted users
IP Whitelist Protection
- Lock fixed IP for each whitelisted account
- Auto-BAN if login from different IP
- Protect accounts from attacks/theft
- Instant admin notification when attack detected
Admin Command Protection
- Monitor ALL admin commands from whitelisted 2FA accounts
- Send Discord webhook notifications for all protected commands
- Complete console logging for audit
- Rate limiting to prevent spam notifications
⚡ Auto-Deop & Auto-Gamemode
- Auto-deop players when joining/leaving server
- Auto-switch gamemode from CREATIVE to SURVIVAL
- Can be enabled/disabled via config
Perfect for:
- Servers with multiple admins requiring high security
- Servers with important accounts needing protection
- Servers requiring complete audit trail
- Servers wanting to prevent admin abuse
Requirements:
- Dependencies: PlaceholderAPI (required), LuckPerms (optional)
Commands:
- /auth <code> - 2FA authentication
- /2fa - 2FA and IP whitelist management
Special Features:
- ✅ Fully customizable messages.yml system
- ✅ Discord webhook notifications
- ✅ Performance optimized (async tasks, cache system)
- ✅ Console command support
- ✅ Complete tab completion
Installation:
Plugin rq:
PlaceholderAPI
- Place plugin in plugins/ folder
- Restart server
- Configure in config.yml and messages.yml
- Setup 2FA for admins: /2fa setup <player> ( ONLY CONSOLE )
Protect your server with professional multi-layer security system!