Cocobans

插件

· 作者 lechat

一个用于对用户实施制裁的 Velocity 插件。

0 本站下载 0 关注 更新于 11 个月前

最新 1.1.0 · 1.21.11 · Velocity

一键开服(送7天)

CocoBans - Velocity 制裁插件

v1.1.0
向下滚动查看英文版

中文

CocoBans 是一款功能全面的 Minecraft Velocity 服务器制裁管理插件。由 Lechat 开发,它为管理服务器上的制裁提供了一套强大且高效的解决方案。

主要特性

  • 25 个功能命令,实现完整的制裁管理
  • 多数据库支持(默认 SQLite,可选 MySQL)
  • 高级日志系统,拥有专用日志文件及游戏内查阅功能
  • 预定义模板,快速应用常见制裁
  • 详细统计,提供完整指标数据
  • 完全可自定义的配置,包含超过 80 条可配置消息
  • 高级监狱系统,具备持续监控与自动重定向功能
  • 增强的安全系统,带有防滥用保护机制
  • 性能优化,采用异步查询与智能缓存

支持的制裁类型

玩家制裁

  • Ban - 临时或永久封禁
  • Mute - 禁止在聊天中发言
  • Kick - 立即踢出服务器
  • Warn - 警告,不强制断开连接
  • Jail - 传送至监狱服务器

IP 制裁

  • BanIP - 封禁整个 IP 地址
  • MuteIP - 禁止该 IP 下所有玩家发言
  • KickIP - 踢出该 IP 下的所有在线玩家
  • JailIP - 将该 IP 地址的玩家关入监狱

新功能

  • 改进的监狱系统,支持自动重定向至监狱服务器
  • 每 5 秒一次的异步监狱监控,进行持续检查
  • 玩家被重定向至监狱时显示可配置的信息消息
  • 新增 /unjail 和 /unjailip 命令,用于释放被监禁的玩家和 IP
  • 完善 /jailip 命令,全面支持 IP 制裁
  • 修复 /mute 命令的自动补全,现在包含时长建议
  • 消息完全可配置 - 超过 80 条可自定义消息
  • 改进所有监狱相关命令的参数解析
  • 鲁棒的监狱类型验证,支持多服务器环境

Bug 修复

  • 修正永久时间的解析 用于处罚(现在 “perm” 可以正常工作)
  • 修正 YAML 配置文件中的语法错误 (分隔符及其他问题)
  • 修正命令使用消息 带有完整的语法说明
  • 修正监狱相关命令的参数解析 (包括持续时间和原因)
  • 修正监狱类型验证 (使用 “default” 而非服务器名称)
  • 修正 /mute 命令的自动补全 提供持续时间建议
  • 修正硬编码字符串 — 所有消息现在均可配置

安装

快速安装

  1. 从 Releases 页面下载 JAR 文件
  2. 将其放入 Velocity 服务器的 plugins/ 文件夹中
  3. 重启服务器
  4. 插件将自动生成其配置文件
  5. 如果您是从旧版本升级,请更新您的 config.yml 以启用新的配置选项

配置

插件会自动生成一个包含所有可用选项的完整 config.yml 文件。您可以自定义:

  • 消息与通知(超过 80 条完全可配置的消息)
  • 基础数据库设置(默认使用 SQLite,支持 MySQL)
  • 权限与命令
  • 预设的处罚模板
  • 广播与警报选项
  • 处罚默认时长
  • 支持多种监狱类型与服务器
  • 自定义服务器的监狱配置

可用命令

基础制裁

/ban <玩家> <时长> <原因>     - 封禁一名玩家
/mute <玩家> <时长> <原因>    - 静音一名玩家  
/kick <玩家> <原因>            - 踢出一名玩家
/warn <玩家> <原因>            - 警告一名玩家

制裁 IP

/banip <ip> <durée> <raison>       - 禁止一个IP地址
/muteip <ip> <durée> <raison>      - 静音一个IP地址
/kickip <ip> <raison>              - 踢出一个IP地址

监狱制裁

/jail <玩家> <时长> <理由> <类型> - 将玩家关入监狱
/jailip <IP地址> <时长> <理由> <类型> - 封锁某个 IP 地址
/jailban <玩家> <时长> <理由> - 封禁并关押一名玩家
/jailbanip <IP地址> <时长> <理由> - 封禁并封锁一个 IP 地址
/unjail <玩家> - 释放一名被关押的玩家
/unjailip <IP地址> - 解除对一个 IP 地址的封锁

撤销惩罚

/unban <玩家>                    - 解除封禁
/unmute <玩家>                   - 解除静音
/unjail <玩家>                   - 释放玩家出狱
/unjailip <IP地址>                     - 从监狱中释放 IP 地址

信息

/check <玩家>                    - 查看当前生效的处罚
/history <玩家>                  - 查看完整的历史记录

管理

/cocobans reload                   - 重新加载配置
/cocobans info                     - 插件信息
/cbstats                          - 详细统计
/cbtemplate list                  - 列出模板
/cbtemplate use <模板> <玩家> - 应用模板
/cblogs [行数]                  - 查看日志

权限系统

基础权限

  • cocobans.admin - 完全管理员访问权限
  • cocobans.ban - 封禁权限
  • cocobans.mute - 禁言权限
  • cocobans.kick - 踢出权限
  • cocobans.warn - 警告权限
  • cocobans.unban - 解封权限
  • cocobans.unmute - 解除禁言权限
  • cocobans.check - 查看制裁记录权限
  • cocobans.history - 查看历史权限

IP 相关权限

  • cocobans.banip - 按 IP 封禁权限
  • cocobans.muteip - 按 IP 禁言权限
  • cocobans.kickip - 按 IP 踢出权限

绕过权限

  • cocobans.bypass.ban - 免疫封禁
  • cocobans.bypass.mute - 免疫禁言
  • cocobans.bypass.kick - 免疫踢出

特殊权限

  • cocobans.alerts - 接收制裁通知

时长格式

插件支持多种时长格式,例如:

  • 30s - 30 秒
  • 5m - 5 分钟
  • 2h - 2 小时
  • 7d - 7 天
  • perm - 永久

预设模板

插件包含常见制裁的模板:

  • grief - 因破坏行为封禁 7 天
  • spam - 因刷屏禁言 1 小时
  • insultes - 因辱骂禁言 6 小时
  • hack - 因作弊永久封禁
  • pub - 因广告踢出
  • avertissement - 一般警告

数据库

SQLite(默认)

无需配置。数据库将在插件文件夹中自动创建。

MySQL(可选)

在 config.yml 中配置连接参数:

database:
  type: "mysql"
  host: "localhost"
  port: 3306
  database: "cocobans"
  username: "votre_utilisateur"
  password: "votre_mot_de_passe"

技术前提

  • Java 17 或更高版本
  • Velocity 3.2.0 或更高版本
  • Minecraft 1.19 或更高版本

支持与文档

如需帮助,请在 Discord 上联系我:@lechat_v2


English

CocoBans is a comprehensive sanctions management plugin for Minecraft servers using Velocity. Developed by Lechat, it provides a robust and performant solution for administering sanctions on your server.

Key Features

  • 25 functional commands for complete sanctions management
  • Multi-database support (SQLite by default, MySQL optional)
  • Advanced logging system with dedicated file and in-game consultation
  • Predefined templates for quick application of common sanctions
  • Detailed statistics with comprehensive metrics
  • Fully customizable configuration with 80+ configurable messages
  • Advanced jail system with continuous monitoring and automatic redirection
  • Enhanced security system with anti-abuse protections
  • Optimized performance with asynchronous queries and intelligent caching

Supported Sanction Types

Player Sanctions

  • Ban - Temporary or permanent banishment
  • Mute - Chat silencing
  • Kick - Immediate server expulsion
  • Warn - Warning without disconnection
  • Jail - Redirection to a jail server

IP Sanctions

  • BanIP - Complete IP address banishment
  • MuteIP - Silencing all players from an IP
  • KickIP - Expulsion of all players connected from an IP
  • JailIP - Jail for a complete IP address

New Features

  • Improved jail system with automatic server redirection
  • Asynchronous jail monitoring every 5 seconds with continuous verification
  • Configurable informative messages when players are redirected to jail
  • New /unjail and /unjailip commands to release jailed players and IPs
  • Completed /jailip command with full IP sanction support
  • Fixed /mute command autocomplete with duration suggestions
  • Fully configurable messages - 80+ customizable messages
  • Enhanced argument parsing for all jail commands
  • Robust jail type validation with multi-server support

Bug Fixes

  • Fixed permanent time parsing for sanctions ("perm" now works correctly)
  • Fixed YAML syntax errors in configuration (separators and other issues)
  • Fixed command usage messages with complete syntax
  • Fixed argument parsing for jail commands (duration and reason handling)
  • Fixed jail type validation (uses "default" instead of server name)
  • Fixed autocomplete for /mute with duration suggestions
  • Fixed hardcoded strings - All messages are now configurable

Installation

Quick Installation

  1. Download the JAR file from releases
  2. Place it in your Velocity server's plugins/ folder
  3. Restart the server
  4. The plugin will automatically create its configuration
  5. Update your config.yml if upgrading from previous versions to take advantage of new configuration options

Configuration

The plugin automatically generates a complete config.yml file with all available options. You can customize:

  • Messages and notifications (80+ fully configurable messages)
  • Database parameters (SQLite default, MySQL supported)
  • Permissions and commands
  • Predefined sanction templates
  • Broadcast and alert options
  • Default sanction durations
  • Support for multiple jail types and servers
  • Jail configuration with custom servers

Available Commands

Basic Sanctions

/ban <player> <duration> <reason>     - Ban a player
/mute <player> <duration> <reason>    - Mute a player
/kick <player> <reason>               - Kick a player
/warn <player> <reason>               - Warn a player

IP Sanctions

/banip <ip> <duration> <reason>       - Ban an IP address
/muteip <ip> <duration> <reason>      - Mute an IP address
/kickip <ip> <reason>                 - Kick an IP address

监狱制裁

/jail <玩家> <时长> <理由> <类型> - 将玩家关入监狱
/jailip <IP地址> <时长> <理由> <类型> - 将 IP 地址关入监狱
/jailban <玩家> <时长> <理由> - 封禁并将玩家关入监狱
/jailbanip <IP地址> <时长> <理由> - 封禁并将 IP 地址关入监狱
/unjail <玩家> - 释放玩家出狱
/unjailip <IP地址> - 释放 IP 地址出狱

撤销操作

/unban <玩家>                       - 解除封禁一名玩家
/unmute <玩家>                      - 解除静音一名玩家
/unjail <玩家>                      - 将一名玩家从监狱中释放
/unjailip <IP地址>                  - 将某个 IP 地址从监狱中释放

信息

/check <玩家>                       - 检查当前制裁状态
/history <玩家>                     - 查看完整历史记录

管理命令

/cocobans reload                      - 重载配置
/cocobans info                        - 插件信息
/cbstats                             - 详细统计信息
/cbtemplate list                     - 列出模板
/cbtemplate use <模板> <玩家>   - 应用模板
/cblogs [行数]                      - 查看日志

权限系统

基本权限

  • cocobans.admin - 完全管理员访问权限
  • cocobans.ban - 禁止玩家的权限
  • cocobans.mute - 禁言玩家的权限
  • cocobans.kick - 踢出玩家的权限
  • cocobans.warn - 警告玩家的权限
  • cocobans.unban - 解除禁止的权限
  • cocobans.unmute - 解除禁言的权限
  • cocobans.check - 查看制裁记录的权限
  • cocobans.history - 查看历史记录的权限

IP 权限

  • cocobans.banip - 按 IP 禁止玩家的权限
  • cocobans.muteip - 按 IP 禁言玩家的权限
  • cocobans.kickip - 按 IP 踢出玩家的权限

绕过权限

  • cocobans.bypass.ban - 免疫禁止惩罚
  • cocobans.bypass.mute - 免疫禁言惩罚
  • cocobans.bypass.kick - 免疫踢出惩罚

特殊权限

  • cocobans.alerts - 接收制裁通知

持续时间格式

插件支持多种持续时间格式,例如:

  • 30s - 30 秒
  • 5m - 5 分钟
  • 2h - 2 小时
  • 7d - 7 天
  • perm - 永久

预设模板

插件包含常见制裁的预设模板:

  • grief - 破坏行为,禁止 7 天
  • spam - 刷屏行为,禁言 1 小时
  • insultes - 辱骂行为,禁言 6 小时
  • hack - 作弊行为,永久禁止
  • pub - 广告行为,踢出服务器
  • avertissement - 一般警告

数据库

SQLite(默认)

无需配置。数据库将自动在插件文件夹中创建。

MySQL(可选)

在 config.yml 中配置连接参数:

database:
  type: "mysql"
  host: "localhost"
  port: 3306
  database: "cocobans"
  username: "your_username"
  password: "your_password"

技术要求

  • Java 17 或更高版本
  • Velocity 3.2.0 或更高版本
  • Minecraft 1.19 或更高版本

支持与文档

如需帮助,请在 Discord 上联系我:@lechat_v2


作者

Lechat_

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源