本帖最后由 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`
- # NoCheatPlus AntiCheat Config
- config-version:
- notify: false
- version: 1000
- # Currently "en" and "zh" are supported languages
- # You are able to create your own language in the "lang" config directory
- lang: "en"
- logging:
- active: true
- auto-delete-days: 1
- debug: false
- prefix: "§c§lNCP §7>> §r"
- extended:
- command: true
- violation: true
- actions:
- waring_delay: 10
- kick_broadcast: "§c§lNCP §7>>[url=home.php?mod=space&uid=57396]@Player[/url] has been kicked for @hack"
- protection:
- command:
- hide:
- active: true
- message: "§c§lNCP §7>> §rYou do not have permission to run this command."
- commands:
- - "?"
- - "plugins"
- - "version"
- - "about"
- - "ver"
- checks:
- inventory:
- instanteat:
- active: true
- actions: "cancel vl>5&&kick vl>20"
- move:
- active: true
- actions: "cancel vl>0&&kick vl>3"
- open:
- active: true
- actions: "cancel vl>0"
- fastclick:
- active: true
- delay: 50
- actions: "cancel vl>5&&kick vl>20"
- moving:
- survivalfly:
- active: true
- strict_mode: false
- setback_policy:
- fall_damage: true
- void_to_void: true
- latency_protection: 120
- 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"
- morepackets:
- active: true
- actions: "cancel vl>5&&kick vl>15&&ban repeat=3 time=3,0,0"
- creativefly:
- active: true
- actions: "cancel vl>20"
- nofall:
- active: true
- dealdamage: true
- skipallowflight: true
- resetonviolation: false
- resetonteleport: true
- resetonvehicle: true
- actions: "cancel vl>5&&log vl>10&&kick vl>20"
- vehicle:
- active: true
- actions: "cancel vl>10&&kick vl>50&&ban repeat=3 time=3,0,0"
- string:
- kick: "§c§lNCP §7>> §rYou are kicked by NCP because of using [url=home.php?mod=space&uid=436468]@HACK[/url] on server@next"
- ban: "§c§lNCP §7>> §rYou are banned by NCP for §c@days,@hours,@minutes,@seconds§r because of using @hack @nextEndTime: @end"
- fly_short: "@player could be flying hack @vl"
- permission:
- no_permission: "§c§lNCP §7>> §rYou do not have permission to run this command."
- policy:
- - "nocheatplus.admin.all:reload,kick,ban,unban,debug,toggle,permission"
- - "nocheatplus.admin.helper:kick,ban,unban"
- bypass:
- # Custom bypass permission
- MOVING_CREATIVE_FLY:
- - "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官网原贴或开源仓库为准!