catrinbow
本帖最后由 lt_name 于 2023-2-28 20:12 编辑
NoCheatPlus


基于Nukkit/PM1E/PowerNukkitX开发的先进反作弊

社区维护|开源|免费

开源地址: Github

英文原贴翻译:

一个先进的反作弊工作在Nukkit/PM1E/PowerNukkit上。借鉴Bukkit(Spigot)的一个知名反作弊NoCheatPlus。我们是为了修复Nukkit中的bug,防止玩家作弊。NoCheatPlus试图阻止欺诈客户利用《我的世界》或其协议的弱点,使您的服务器更加安全。检查涵盖了广泛的问题,包括飞行和超速,战斗黑客,快速封锁突破和核武器,库存黑客,聊天垃圾邮件和其他类型的恶意行为。

优点:
高性能、低占用率、高效率
轻量级、国际化、开源
保护您的服务器,防止它们崩溃
防止玩家欺骗您的服务器

开发进度(原贴为准)
[95%] SurvivalFly
[√] CreativeFly
[20%] Speed
[√] FastEat
[50%] NoSlow
[√] InventoryMove
[√] InventoryFastClick
( ) NoFall
( ) Velocity
( ) Phase
[√] Crasher
[√] Client
[√] MorePacket
( ) Scaffold
( ) KillAura
( )Reach
( ) AutoClicker
( ) HitBox
( ) Helper Tool GUI

命令
- /ncp - 获得插件信息
- /ncp version - 获得插件版本信息
- /ncp reload - 重载插件配置文件
- /ncp debug - 开关调试模式
- /ncp ban - 封禁玩家
- /ncp unban` 解封玩家
- /ncp kick - 踢出玩家
- /ncp toggle - 开关检查项目

配置文件(原贴为准)
接下来启动服务器。之后,你会看到`plugins/`下生成了一个名为`NoCheatPlus`的目录。
让我们首先打开其中的配置文件 `ncpconfig.yml`

  1. # NoCheatPlus AntiCheat Config
  2. config-version:
  3.   notify: false
  4.   version: 1000

  5. # Currently "en" and "zh" are supported languages
  6. # You are able to create your own language in the "lang" config directory
  7. lang: "en"

  8. logging:
  9.   active: true
  10.   auto-delete-days: 1
  11.   debug: false
  12.   prefix: "§c§lNCP §7>> §r"
  13.   extended:
  14.     command: true
  15.     violation: true
  16. actions:
  17.   waring_delay: 10
  18.   kick_broadcast: "§c§lNCP §7>>[url=home.php?mod=space&uid=57396]@Player[/url] has been kicked for @hack"
  19. protection:
  20.   command:
  21.     hide:
  22.       active: true
  23.       message: "§c§lNCP §7>> §rYou do not have permission to run this command."
  24.       commands:
  25.         - "?"
  26.         - "plugins"
  27.         - "version"
  28.         - "about"
  29.         - "ver"
  30. checks:
  31.   inventory:
  32.     instanteat:
  33.       active: true
  34.       actions: "cancel vl>5&&kick vl>20"
  35.     move:
  36.       active: true
  37.       actions: "cancel vl>0&&kick vl>3"
  38.     open:
  39.       active: true
  40.       actions: "cancel vl>0"
  41.     fastclick:
  42.       active: true
  43.       delay: 50
  44.       actions: "cancel vl>5&&kick vl>20"
  45.   moving:
  46.     survivalfly:
  47.       active: true
  48.       strict_mode: false
  49.       setback_policy:
  50.         fall_damage: true
  51.         void_to_void: true
  52.         latency_protection: 120
  53.       actions: "cancel vl>20&&log vl>30 break=60&&warn vl>90 message=fly_short&&kick vl>100&&ban repeat=3 time=3,0,0"
  54.     morepackets:
  55.       active: true
  56.       actions: "cancel vl>5&&kick vl>15&&ban repeat=3 time=3,0,0"
  57.     creativefly:
  58.       active: true
  59.       actions: "cancel vl>20"
  60.     nofall:
  61.       active: true
  62.       dealdamage: true
  63.       skipallowflight: true
  64.       resetonviolation: false
  65.       resetonteleport: true
  66.       resetonvehicle: true
  67.       actions: "cancel vl>5&&log vl>10&&kick vl>20"
  68.     vehicle:
  69.       active: true
  70.       actions: "cancel vl>10&&kick vl>50&&ban repeat=3 time=3,0,0"

  71. string:
  72.   kick: "§c§lNCP §7>> §rYou are kicked by NCP because of using [url=home.php?mod=space&uid=436468]@HACK[/url] on server@next"
  73.   ban: "§c§lNCP §7>> §rYou are banned by NCP for §c@days,@hours,@minutes,@seconds§r because of using @hack @nextEndTime: @end"
  74.   fly_short: "@player could be flying hack @vl"

  75. permission:
  76.   no_permission: "§c§lNCP §7>> §rYou do not have permission to run this command."
  77.   policy:
  78.     - "nocheatplus.admin.all:reload,kick,ban,unban,debug,toggle,permission"
  79.     - "nocheatplus.admin.helper:kick,ban,unban"
  80.   bypass:
  81.     # Custom bypass permission
  82.     MOVING_CREATIVE_FLY:
  83.       - "ncp.creativefly.bypass"
复制代码

原贴wiki翻译
1.自定义处罚系统
在每个检测项目中有一个actions的设定,下面给出处罚操作的格式:
- 处罚类型 对象A[关系式]对象B 其他参数
- 多个处罚操作之间用与&&进行连接
- 支持的处罚类型如下:
- `cancel` 产生一个拉回操作,回滚当前tick的运动
- `log` 向NCP日志中记录玩家作弊行为,参数`break 冷却秒数`
- `warn` 向玩家发送一个警告消息,参数`message 消息内容`
- `kick` 将玩家踢出服务器
- `ban` 将玩家从服务器封禁,参数`repeat 容错次数`,`time 封禁时间`
- 若不设置参数,插件将使用NCP默认值
添加警告消息需要在string中加入

2.自定义权限组
在permission.policy中进行设置,格式为:
- `权限:命令表`
命令之间用逗号连接
- 若命令在NCP中没有一条记录,那么默认所有玩家都可以使用它
- 例如version在事例的nocheatplus.admin.all和nocheatplus.admin.helper中都没规定

备注:
本插件是由社区支持和维护的开源免费插件,永久免费更新。本帖子更新可能延迟,依nukkit官网原贴或开源仓库为准!

第一页 上一页 下一页 最后一页