• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Captcha

来自Minecraft插件百科
跳转至: 导航搜索
Icon-info.png
本页面已存在其他语言的内容,请协助翻译为本地化的中文。
  • 点击此处开始翻译。
  • 如本模板出现在原文存档页面,请注意更新主页面后,仍需要去除此处该模板。
  • 如当前页面已经没有需要翻译的内容,请删去待翻译模板。
  • 有标题的大篇幅文章,如果短时间内无法全部翻译,请先把所有的标题翻译出来,以便之后的贡献者选择与翻译章节内容。
Captcha
外文名Captcha
作者InstantlyMoist
插件类型Spigot / CraftBukkit
最新版本0.05 BETA 5
兼容服务端1.7-1.11
源地址http://dev.bukkit.org/bukkit-plugins/Captcha

Captcha是一款由InstantlyMoist开发的提供反作弊、反挂机、验证码功能的Bukkit插件。

介绍

Captcha为你的服务器提供反BOT系统。它提供了相当多的验证方式,可以防止BOT加入游戏,刷屏或是作弊。除了内置的反BOT系统外.这个插件还包括反挂机、反作弊系统 (比如检测玩家的点击速度) 如果大于指定的点击速度就会出现验证码, 并且这个插件还可以防止快速重登来防止卡服。大多数情况下插件使用异步处理,所以不会影响服务器性能。

特点

这个插件有9种验证方式,分为GUI式和非GUI式:

GUI 1 (点击验证):这种验证方式需要点击特点的物品。你可以在配置文件内自定义这一项。你甚至可以使用自定义材质 (检测玩家是否启用特定的材质包)。

GUI 2 (数学验证):是时候考考你的数学了, 这种验证方式会问你一些简单的数学问题。

GUI 3 (发光验证):这种验证方式需要点击发光的物品, The glowing item is a random item inbetween other random items. This one can be quite diffcult to spot, the perfect way to spot bots.

GUI 4 (点击所有的 ... GUI):Although this one is quite simlair to GUI 1, this one is a bit different. In this GUI you'll need to click more types of one certain item. This item can be set in to the configuration file, and this one is also perfect for testing if the player has a certain resource pack on.

Captcha 1 (输入验证):In this Captcha you'll get a random letter string, The size is customizable but set to 5 by default. Your goal is to type the string correctly.

Captcha 2 (潜行验证):很简单, 你只需按住潜行即可验证。

Captcha 3 (随机数字验证):这和验证方式 1 差不多,你需要输入一个随机显示的数字。

Captcha 4 (方向验证):这个验证方式仍在测试中所以默认关闭。需要看着上下左右这些方向来验证。

Captcha 5 (跳跃验证):这个验证最简单,只需要跳跃即可!

指令&权限

/captcha

  • 基础插件指令
  • 无权限


/captcha reload

  • 重载配置
  • 权限: captcha.reload (可自定义)

/captcha PLAYER

  • 验证某个玩家
  • 权限: captcha.open.others (可自定义)

其他权限

captcha.override (可自定义)

  • 允许你忽略验证

captcha.notify (可自定义)

  • 在其他玩家收到验证时提醒你

配置

###############
#C-A-P-T-C-H-A#
###############
#
# 欢迎使用 Captcha! 希望这款插件对你有帮助 it :)
#
# 所有的材料名: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# 所有的音效名: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
#

IgnoreMouseMovements: true
# 忽略鼠标移动

ClearDataOnBoot: false
# 是否在插件启动时清除CAPTCHA数据?

OnlyCaptchaIn:
  - 'world'
  - 'spawn'

# 消息:

PassedCaptcha: '&7[&a&l验证码&7]: 你成功地通过了验证!'
PassedCaptchaMessageEnabled: true

NoPermissions: '&7[&c&l错误&7]: 你没有权限执行这个指令'
# 没有权限的消息

UnknownPlayer: '&7[&c&l错误&7]: 玩家 %player% 无效'
# 无效玩家的消息

NoCaptchasEnabled: '&7[&c&l错误&7]: 未启用任何验证码'
# 尝试验证但没有验证码的消息

HasOverride: '&7[&c&l错误&7]: 指定玩家拥有忽略验证码的权限'
# 尝试打开验证码菜单却没有权限的消息

CommandsOnGood:
  - 'say %player% 通过了验证'

CommandsOnKick:
  - 'say %player% 验证失败'
# 即使踢人关闭了也会显示这条消息

KickEnabled: true
# 是否踢人?

KickMessage: '&7你没有通过验证\n你被踢出了服务器!'
# 玩家被踢显示的消息, 用 \n 来换行

RelogDelayKickMessage: '&7请稍后 %s%\n 再登录'
# 被踢后冷却显示的消息

MustMove: '&7[&c&l错误&7]: 如果你想要移动,那么请你说话或执行指令'
# 检测的消息.

NotifyMessage: '&7[&a&l验证码&7]: %player% 未通过验证!'
NotifyMessageEnabled: true
NotifyPermission: 'captcha.notify'

BotAttackOver: '&7[&a&l验证码&7]: 假人压测似乎结束了'

ServerLockedKickMessage: '&7对不起,服务器似乎被压测了\n 请稍后再试!'
# 锁服消息

# 其他设置:

CaptchaAfterNotChattingEnabled: true

IncludeCommands: true

CaptchaAfterNotChatting: 300
# 当玩家多久不聊天后发送验证码进行检测 (单位为秒)

CaptchaAfterNotMovingEnabled: true

CaptchaAfterNotMoving: 300
# 当玩家多久不动后发送验证码进行检测 (单位为秒)

MaximumJoinsPerSecond: 5
# 锁服前每秒可登录的玩家数

CaptchaOnClick: 25
# 玩家需要每秒点击多少下才会触发验证码 (Anti-Macro)

CaptchaOnClickEnabled: true

MaximumChatsPer5Seconds: 5
# 玩家每秒发送聊天信息多少次才会触发验证码

MaximumChatsPer5SecondsEnabled: true

ReloadPermission: 'captcha.reload'
# 重载插件所需权限

CaptchaOpenPermission: 'captcha.open.others'
# 对其他玩家验证的权限

SoundOnCaptcha: 'BLOCK_ANVIL_LAND'
# 获取验证码的音效
# 设置为 NONE 来关闭

SoundOnCaptchaComplete: 'ENTITY_SILVERFISH_DEATH'
# 成功通过验证码的音效
# 设置为 NONE 来关闭

TimesFailed: 5
# 最大错误次数

KickTime: 10
# 玩家回答验证码的时间, 超时会被踢出服务器

RelogDelay: 15
# 玩家重连的冷却时间

OverridePermission: 'captcha.override'
# 忽略验证码的权限

MoveBeforeChatAndCommands: true
# 聊天和输入指令前是否必须移动?

AllowedCommands:
  - '/login'
# 不移动时可输入的指令

CaptchaOn: ALL
# 验证码出现的时间
# 有效类型: FIRSTJOIN, ALL, NONE

BlockDirectConnections: true
# 是否防止直连服务器?

BlockDirectConnectionsKickMessage: '&7Oops,请不要直接连接服务器! \n 没有直连?刷新你的服务器列表试下吧!'
# 直连服务器显示的消息

# GUI 1:
# A.K.A 点击验证 GUI

GUI1Enabled: true
# 是否启用GUI1验证?

GUI1InventorySize: 54
# 必须是9的倍数

GUI1InventoryName: '&a&l点击牛排!'
# 物品名

GUI1InventoryClickItem: 'COOKED_BEEF'
# 所点击的物品的材质?

GUI1InventoryClickItemDurabillity: 1
#设置物品耐久(可用来显示自定义材质)

GUI1InventoryClickItemUnbreakable: false
# 是否使物品无法破坏, 用于自定义材质

GUI1InventoryClickItemName: '&a&l点我!'
# 物品名?

GUI1InventoryClickItemLore:
  - '&a&l点我通过验证!'
  - '&a&l没错! 戳我!'
# 物品描述

GUI1InventoryFillName: '&c&l别戳我!'
# 物品描述

GUI1InventoryFillLore:
  - '&c&l你根本就不应该戳我!'
  - '&c&l不是我! 别戳我'
# 物品描述

GUI1InventoryFillItem: 'STAINED_GLASS_PANE'
# 物品材质?

GUI1InventoryFillDurability: 15
# 物品耐久

GUI1InventoryFillUnbreakable: false
# 是否使物品无限耐久

GUI1EnabledIn:
  - 'world'

# GUI 2:
# A.K.A 数学问题 GUI

GUI2Enabled: true

GUI2InventoryName: '&a&l %1 + %2 = ?'

GUI2EnabledIn:
  - 'world'

# GUI 3:
# A.K.A 发光物品 GUI

GUI3Enabled: true

GUI3InventorySize: 54

GUI3InventoryName: '&a&l点击发光的物品!'

GUI3ClickItemName: '&a&l戳我!'

GUI3ClickItemLore:
  - '&a&l戳我!'
  - '没错, 我是发光的物品!'

GUI3EnabledIn:
  - 'world'
 
# GUI 4:
# A.K.A 点击验证

GUI4Enabled: true

GUI4InventoryName: '&7点击所有的绿色方块'

GUI4ClickItem: 'STAINED_CLAY'

GUI4ClickItemName: '&a&l没错! 戳我'

GUI4ClickItemDurabillity: 5

GUI4FillItemName: '&c&l不!, 别戳我!'

GUI4FillItem: 'STAINED_GLASS_PANE'

GUI4FillItemDurabillity: 15

GUI4EnabledIn:
  - 'world'
 
# Captcha 1:
# A.K.A 输入验证

Captcha1Enabled: true

Captcha1Lenght: 5
# 随机输入字母的长度

Captcha1Message: '&7[&a&l验证码&7]: 你需要输入 %captcha% 来通过验证'
# 玩家输入验证时显示的信息

Captcha1EnabledIn:
  - 'world'

# Captcha 2:
# A.K.A 潜行验证

Captcha2Enabled: true

Captcha2Message: '&7[&a&l验证码&7]: 你必须按Shift潜行才能通过验证'
# 玩家潜行验证时显示的信息

Captcha2EnabledIn:
  - 'world'

# Captcha 3:
# A.K.A 随机数验证

Captcha3Enabled: true

Captcha3Message: '&7[&a&l验证码&7]: I你必须输入 %number% 才能通过验证'

Captcha3MaxRandomNumber: 9999

Captcha3EnabledIn:
  - 'world'

# Captcha 4:
# A.K.A 方向验证

Captcha4Enabled: false

Captcha4Message: '&7[&a&l验证码&7]: 你必须往 %to% 看 才能通过验证'

Captcha4EnabledIn:
  - 'world'

# Captcha 5:
# A.K.A 跳跃验证

Captcha5Enabled: true

Captcha5Message: '&7[&a&l验证码&7]: 你必须跳一下才能通过验证'

Captcha5EnabledIn:
  - 'world'

注释与外部链接