Custom Bans Plus | 完全可定制的封禁管理器

插件

原名 Custom Bans Plus | Fully Customizable Ban Manager · 作者 TheRealCoralise

一个完全可定制的服务器封禁管理器。

0 本站下载 0 关注 更新于 4 年前

最新 CustomBansPlus.jar · 1.19

一键开服(送7天)
Custom Bans Plus 是一款集成的封禁管理插件,具备您作为封禁管理器所需的所有功能以及更多特性。它拥有完全可定制的界面系统,让用户能够根据服务器整体美学风格自由调整外观。该插件还包含一个独特的*功能,使组织服务器的协议和流程变得更加轻松。
 
提供两个版本:
MySQL 数据库版
本地(YAML)版
 
 
 
v3.3.17 质量改进更新与补丁
更新内容:
- 新增 PlasmoVoice 支持。静音玩家现在也将同时在 PlasmoVoice 语音聊天中被静音。
- 将封禁记录同步至 Bukkit Banlist。这允许其他插件通过 Bukkit 封禁列表系统识别封禁状态。
- 新增 Unwarn 命令。使用 /unwarn <player> 可以撤销其最新的一条警告。所需权限:custombansplus.unwarn
- 新增配置项 default-punishments-to-permanent。将此配置设为 true 后,若未指定时长或指定了无效值,带有期限的处罚将默认为永久。
- 为“时长文字化”功能新增了 "and" 配置选项。

修复内容:

  • 修复了服务器启动时封禁未能解除的问题。
  • 修复了即使玩家没有相应权限,Tab 补全仍然对所有玩家显示的问题。
  • 修复了严重性别名(Severity Aliases)和固定理由(Fixed Reasons)无法正确保存的问题。
  • 修复了服务器启动时玩家数据无法正确加载的问题。

请查看下方的最新 config.yml 以了解所有新增内容。

 
我们已创建了一份设置指南 ,以更好地帮助您配置管理员权限。您可以点击此处访问。

 新版 config.yml:

#MYSQL CONFIGURATION - You may setup your MySql Database here.
# You may delete the .db file if you use this version.
mysql:
  enable: false
  host:
  port:
  user:
  pass:
  database-name: "custombansplus"
  useSSL: false
  allowPublicKeyRetrieval: false

Database: Validate-Tables: true

Changes the display name of your console. For example, when you ban a player using the console, it'll substitute, save, and display the name below instead of just "CONSOLE."

console-name: "The Great Console"

Note: If both are set to false, the plugin will default to interval saving at a 15 minute duration.

cache:

Sends a notif message to admins when cache is being stored.

notify-save: false

Data saves when N number of new players join.

fixed-amount: enable: true save-at: 100

Data saves every N duration.

intervals: enable: true save-at: 15m

Set to true if you want to use punishments without reason, and false if you want to use the default reasons if reason is blank.

toggle-no-reason: false

Set to true if you want to force use the preset severity reason regardless if the sender inputted their own reason or not.

force-severity-reason: false

Set to true if you want punishments with durations to default to permanent if no value or an invalid value is specified.

"/ban [-s] <player> <reason>" would default to permanent.

default-punishments-to-permanent: false

Add as many warn checkers as you want.

Order of commands executed is top to bottom.

Format: %player%

warn: 3: console-commands: - eco take %player% 500 - kick %player% Reached 3 warns. 5: console-commands: - ban %player% s1 Reached 5 warns.

Set enable-warn-titles to true if you want titles to appear on your warns.

warn-title: enable: true warn-title: "&c&lYou have been warned!"

Set to true if you want the warn reason as the subtitle.

custom-subtitle: false warn-subtitle: "§fYou've been warned! Check your chat."

Input your server's whisper or communication commands. A muted player will not be able to use these commands.

whisper-commands:

  • "tell"
  • "whisper"
  • "w"
  • "msg"
  • "localchat"
  • "lc"
  • "factionchat"
  • "fc"

Set to true if you want your durations to be worded out (e.g. 2d -> 2 Days or 3d2h30m -> 3 Days, 2 Hours, and 30 Minutes).

word-out-durations: announcers: true pages: true time-remaining: false

updates:

Set to true if you want op players to receive plugin update notifications.

notify: true

Set intervals of when to check for updates. Follows the same duration patterns (Xs, Xm, Xh, Xd).

interval: 3h

Logs to the console when a ban or mute has been lifted (i.e. served their sentences).

log: ban-lifts: false mute-lifts: false

GUI: title-prefix: "&4CBP &r"

PlasmoVoice: Mute-Voice-On-Mute: true

messages.yml:
# ALWAYS ENCLOSE MESSAGES IN QUOTATIONS

silent-prefix: "&a&lSilent: &r" severity-alias-error: "&cAlias &f%alias% &calready exists for Severity No. %sevnum%. Ignoring this alias."

player-instance-warning: "&e警告:&c玩家 %username% 在该插件首次安装前从未进入过服务器。该玩家的数据将被保存,但当前将没有 IP 记录。操作将继续正常进行。" duration-accepted-values: "&e接受的数值格式:&dperm(永久)或 Xd Xh Xm Xs(天/时/分/秒,可组合使用,例如 1d6h30m)\n&e请输入新的持续时间:" balance-reduction-accepted-values: "&e接受的数值格式:&d有理数和百分比\n&e请输入新的余额扣除值:" console-cmds-desc: "&e命令无需添加 / 前缀。用逗号分隔每个命令(commandx,commandy)。输入玩家占位符为 "&d%player%&e"(重置 %player%)。输入 "clear" 清空命令。输入 "cancel" 取消操作。\n&e请输入新的控制台命令:" alias-desc: "&e请输入新的严重性别名。用逗号分隔每个别名(alias1,alias2)。输入 "clear" 清空别名。输入 "cancel" 取消操作。" severity-fixed-reason-desc: "&e请输入新的固定原因。输入 &dcancel&e 取消操作。"

MessageFormats: %staff% %duration% %reason% %unban-date% %player% %timeleft% /n

pages: tempban:

  • "&c&l你已被封禁!"
  • ""
  • "&f 你被 &e&l%staff%&f 封禁了 &e&l%duration%"
  • "&f 原因是:"
  • "&c%reason%"
  • ""
  • "&f剩余时间:%timeleft%"

permban:

  • "&c&l你已被封禁!"
  • ""
  • "&f 你被 &e&l%staff%&f 永久封禁"
  • "&f 原因是:"
  • "&c%reason%"

kick:

  • "&c&l你已被踢出!"
  • ""
  • "&f 你被 &e&l%staff%&f 踢出"
  • "&f 原因是:"
  • "&c%reason%"

Formats: %staff% %duration% %reason% %unban-date% %player% %timeleft% /n

announcers: tempban: "&c&l%player%&f 被 &e&l%staff%&f 封禁了 &c&l%duration%&f,原因为:&c%reason%" permban: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁,原因为:&c%reason%" tempipban: "&c&l%player%&f 被 &e&l%staff%&f 封禁 IP 了 &c&l%duration%&f,原因为:&c%reason%" permipban: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁 IP,原因为:&c%reason%" kick: "&c&l%player%&f 被 &e&l%staff%&f 踢出,原因为:&c%reason%" warn: "&c&l%player%&f 被 &e&l%staff%&f 警告,原因为:&c%reason%" mute: "&c&l%player%&f 被 &e&l%staff%&f 禁言了 &c&l%duration%&f,原因为:&c%reason%" unban: "&e&l%staff%&f 解除了对 &c&l%player%&f 的封禁。" unmute: "&e&l%staff%&f 解除了对 &c&l%player%&f 的禁言。" tempbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 封禁了 &c&l%duration%" permbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁" tempipbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 封禁 IP 了 &c&l%duration%" permipbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁 IP" kickNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 踢出" warnNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 警告" muteNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 禁言了 &c&l%duration%"

Severity Number Format: %sevnum%

severity: tempban: "&c&l%player%&f 被 &e&l%staff%&f 封禁,严重等级为 &eSeverity &f#&c&l%sevnum%&f,原因为:&c%reason%" permban: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁,严重等级为 &eSeverity &f#&c&l%sevnum%&f,原因为:&c%reason%" tempipban: "&c&l%player%&f 被 &e&l%staff%&f 封禁 IP,严重等级为 &eSeverity &f#&c&l%sevnum%&f,原因为:&c%reason%" permipban: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁 IP,严重等级为 &eSeverity &f#&c&l%sevnum%&f,原因为:&c%reason%" tempbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 封禁,严重等级为 &eSeverity &f#&c&l%sevnum%&f" permbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁,严重等级为 &eSeverity &f#&c&l%sevnum%&f" tempipbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 封禁 IP,严重等级为 &eSeverity &f#&c&l%sevnum%&f" permipbanNoRsn: "&c&l%player%&f 被 &e&l%staff%&f 永久封禁 IP,严重等级为 &eSeverity &f#&c&l%sevnum%&f"

Format: %timeleft%

muted-player: "&c你已被禁言!剩余时间:&f%timeleft%" unmuted-message: "&a你现在已解除禁言。"

report: report-successful: "&a举报成功!管理团队已收到你的举报,请期待尽快回复。" blacklisted-message: "&c你已被列入黑名单,无法使用举报命令。"

Formats: %reporter% %reported% %report%

staff-notify: "&a%reporter% 提交了对 %reported% 的举报!请执行 /reports show %reported% 以查看详情。举报内容:%report%"

defaults: reason: 被封禁之锤击中! mute-reason: 禁言之槌已发声! warn-reason: 你已被警告!

跨服集成(实验性功能)
如果您使用 MySQL 数据库版本的插件,您可以将两个或更多服务器连接到同一个数据库,并能够在它们之间迁移现有的封禁、静音和历史记录。
 
请注意,如果您从另一台服务器封禁或踢出玩家,他们不会从当前服务器被踢出。您必须在玩家所在的服务器上执行惩罚操作。建议您在大厅服务器中使用此功能,或者在玩家可以直接进入的任何服务器中使用。
 
由于仍处于实验阶段,该功能仍容易出现错误。如果您发现任何错误,请随时在我们的 Discord 频道中报告。
通用功能:
  • Ban(封禁)一名玩家。
  • IP Ban(IP 封禁)一名玩家。
  • Kick(踢出)一名玩家。
  • Mute(静音)一名玩家。
  • Warn(警告)一名玩家。
  • [-s] 选项可静默惩罚玩家(适用于上述所有惩罚类型 + 解封和解除静音)。
  • 根据玩家的 IP 检查其备用账号历史。
亮点:
  • 完全可自定义的临时封禁、永久封禁和踢出页面。
  • 完全可自定义的公告系统。
  • 您可以通过config.yml 文件或游戏内界面自定义上述内容。
  • 所有命令均支持简易 Tab 补全。
  • 针对大多数重要命令提供用户友好的 GUI。
  • 用于组织惩罚的严重程度系统。
  • 设置极其简单。
  • 举报功能。一个允许玩家举报其他玩家的功能,并向管理员团队发送通知。管理员可以使用 /report list 查看所有提交的举报。
  • 兼容正版或盗版服务器。
这个插件拥有的独特功能让服务器管理团队只需一条命令即可轻松处罚作弊者。
假设有一条惩罚指令要求封禁玩家并扣除其余额;您通常需要执行两条或多条命令才能完成对单个玩家的处罚。如果您的助手没有执行此类命令的权限,他们需要等待更高级的管理员完成任务,导致管理工作冗余。而本系统解决了这个问题。
严重程度是一种可以集成其他命令类型的封禁,例如自动减少玩家的经济余额或自动清空其物品栏。每种严重程度都有固定的封禁时长(临时或永久),具体取决于您的设置方式。
严重程度列表 GUI:
通过严重程度中预设的命令,管理员现在可以通过一条命令轻松处罚作弊者,从而方便地组织您的惩罚措施。
 
 
~完全可自定义的封禁页面和公告系统,拥有简单、直观且易读的 GUI。
软依赖项:
该插件需要Vault插件以实现余额扣除功能(完全可选)。
安装方法:
  1. 从下方链接下载 jar 文件。
  2. 将 jar 文件放入您的 plugins 文件夹中。
  3. 设置完成!

v3.2.10 及更低版本:
首次启动时,插件仅会创建一个 config.yml 文件并禁用自身。在该文件中,您可以开启并输入 SQL 数据库配置(可选),以及配置您希望在游戏中显示的消息。
重启服务器以继续安装。记得如果修改了 config.yml,请保存更改。

点击此处下载兼容旧版 Minecraft 的插件版本。

如需更多信息,您可以在此查看 CBP Wiki 这里。
愿意请我喝杯咖啡吗?这里有捐赠按钮。:giggle:
USD - EUR - PHP
下一次更新:
举报功能!
欢迎向我提出建议!
如果您有任何关于我的插件的问题、疑虑或建议,可以加入我们的 Discord 或直接私信我:Kyuri#7901。期待在那里见到您!
感谢您使用我的插件,如果可以的话请留下评分,这将让我的小心情愉悦 :giggle:
请务必关注以获取最新动态!
服务条款:
* 未经我(开发者)许可,您不得向任何个人出售或转售此插件。
* 您不得重新分发本产品。
* 我保留在任何时候、出于任何理由终止您许可证的权利。
* 您可以反编译 jar 文件,但仅限于开发目的。
* 本服务条款可随时更改,且无需提前通知。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源