RapidBan 图标

RapidBan

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0-Beta1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/rapidban
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: paper purpur spigot

标签: game-mechanics utility

资源介绍

RapidBan

Enterprise-Grade Minecraft Punishment Management System

A high-performance, distributed punishment management plugin for Paper 1.21+.

Core Features

? High-Performance Architecture

  • Asynchronous Database Operations - Uses HikariCP connection pool;
    all I/O operations are executed asynchronously
  • Thread-Safe Design - Dedicated thread pool for handling database
    requests without impacting server TPS
  • Local Cache - Active ban cache to reduce database queries

? Distributed Synchronization

  • Multi-Server Support - Multiple servers share the same database
  • Real-Time Sync - Ban/unban operations take effect instantly across
    all servers
  • Redis Support - Optional Redis Pub/Sub or database polling

? UUID-Based Ban System

  • Based on UUID instead of player name
  • Supports permanent bans, temporary bans, and silent bans
  • Automatic unban upon expiration
  • Complete undo system

? IP Association Detection

  • Records players’ historical login IPs
  • Automatically detects linked (alt) accounts
  • Notifies administrators of suspicious logins
  • Optional automatic linked-account banning

? Custom Kick Interface

  • Supports MiniMessage format
  • Variable placeholders (player name, reason, remaining time, etc.)
  • Different templates for different punishment types

? Web Management Panel

  • REST API interface
  • JWT authentication
  • View punishment history
  • Execute ban/unban operations
  • Search players and linked accounts

Database Options

SQLite (Recommended for Single Server)

  • ✅ No additional database installation required
  • ✅ Simple configuration, ready to use out of the box
  • ✅ Suitable for small servers
  • ❌ Does not support multi-server synchronization

Configuration example:

database:
  type: "SQLITE"
  sqlite:
    file: "rapidban.db"

MySQL/MariaDB (Recommended for Multi-Server)

  • ✅ Supports distributed multi-server synchronization
  • ✅ High performance, suitable for large networks
  • ✅ Centralized data management
  • ❌ Requires a separate database server

Configuration example:

database:
  type: "MYSQL"
  mysql:
    host: "localhost"
    port: 3306
    database: "rapidban"
    username: "root"
    password: "password"

Configuration

config.yml

# Server identifier (used for distributed synchronization)
server-id: "server-1"

# Database configuration
database:
  # Database type: MYSQL or SQLITE
  type: "MYSQL"

  # MySQL/MariaDB configuration
  mysql:
    host: "localhost"
    port: 3306
    database: "rapidban"
    username: "root"
    password: "password"

  # SQLite configuration (file path relative to plugin data folder)
  sqlite:
    file: "rapidban.db"

# Synchronization system configuration
sync:
  interval-seconds: 5
  use-redis: false
  redis:
    host: "localhost"
    port: 6379
    password: ""

# IP association detection
ip-check:
  enabled: true
  auto-ban-alts: false
  notify-staff: true

# Web management panel
web:
  enabled: true
  host: "0.0.0.0"
  port: 8080
  jwt-secret: "change-this-to-a-random-secret-key"
  admin-username: "admin"
  admin-password: "admin123"

Commands


Command Description Permission


/ban [-t ] [-s] Ban a player rapidban.ban

/unban Unban a player rapidban.unban

/history View punishment history rapidban.history

/punishundo [reason] Undo all punishments rapidban.undo


Duration Format

  • s - Seconds
  • m - Minutes
  • h - Hours
  • d - Days
  • w - Weeks
  • M - Months
  • y - Years

Examples:

/ban Player123 Cheating -t 7d
/ban Player456 Abusive language -t 3h -s
/ban Hacker999 Using hacks

Permissions

Permission Description


rapidban.* All permissions
rapidban.ban Ban players
rapidban.unban Unban players
rapidban.history View history
rapidban.undo Undo punishments
rapidban.notify Receive punishment notifications
rapidban.notify.alt Receive linked-account notifications

Web API

Authentication

POST /auth/login
Content-Type: application/json

{
  "username": "admin",
  "password": "admin123"
}

Response:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "username": "admin",
  "role": "ADMIN"
}

Performance Optimization

  • ✅ All database operations executed asynchronously
  • ✅ HikariCP connection pool optimization
  • ✅ Active ban local cache
  • ✅ Dedicated thread pool for I/O processing
  • ✅ Batch query optimization
  • ✅ Automatic cleanup of expired data

Development

# Clone the project
git clone <repository>

# Build
./gradlew shadowJar

# Output location
build/libs/RapidBan-1.0-Beta1.jar

License

This project is licensed under the GNU General Public License v3.0.

Support

If you have any questions or suggestions, please submit an Issue.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Default 8×8

价格:0 墨喵币
下载量:0

查看详情
Crosshair[+]

价格:0 墨喵币
下载量:0

查看详情
Hatsune Miku's Leek

价格:0 墨喵币
下载量:0

查看详情
Enhanced Player List

价格:0 墨喵币
下载量:0

查看详情