Minecraft Bedrock Edition 假人客户端

Overview

FakePlayer

Minecraft Bedrock Edition 假人客户端

环境依赖

  • Java8或更高

使用方法

  1. unzip FakePlayer-0.2.2-SNAPSHOT.zip
  2. cd FakePlayer-0.2.2-SNAPSHOT/bin
  3. ./FakePlayer-GUI(GUI模式) 或 ./FakePlayer(命令行模式)
  4. 将公钥添加至server.properties
  5. 公钥添加完成后重启BDS即可使用

注意事项

  • 配置文件内含Xbox验证使用的密钥对, 请妥善保管, 切勿泄露
  • 配置文件丢失后再次运行假人客户端会自动重新生成,需要再次进行配置并将新的公钥添加到BDS

使用的第三方库和参考的项目

Comments
  • 无法启动程序

    无法启动程序

    Version & Environment 软件版本和环境

    • BDS Version [e.g. 1.18.12]
    • FakePlayer Version [e.g. 0.5.3]

    Describe the bug 你的问题的描述 无法启动程序

    To Reproduce(Optional) 复现该问题的方法(可选) Steps to reproduce the behavior

    Screenshots or log 截图或日志 If applicable, add screenshots or log to help explain your problem.

    Additional content 附加内容 Add any other content about the problem here.

    bug invalid 
    opened by zjw666nwn 18
  • 无法启动FakePlayer.bat和FakePlayer-GUI.bat

    无法启动FakePlayer.bat和FakePlayer-GUI.bat

    Version & Environment 软件版本和环境

    • BDS Version [e.g. 1.16.40]
    • FakePlayer Version [e.g. 5.2.0]

    Describe the bug 你的问题的描述 无法正常启动FakePlayer.bat和FakePlayer-GUI.bat 原因:在FakePlayer.bat和FakePlayer-GUI.bat中,第67行,批处理标签 “:execute” 中的 “set CLASSPATH=...” 超过了set命令的输入上限,导致批处理脚本闪退,无法运行。

    To Reproduce(Optional) 复现该问题的方法(可选) Steps to reproduce the behavior

    Screenshots or log 截图或日志 删除set CLASSPATH=..前: image 删除后(这个是设置前置Java包库的吧?我去掉也运行不了,只是示范一下): image

    Additional content 附加内容 Add any other content about the problem here.

    bug 
    opened by ArsiIksait 5
  • 1.19 在PNX无法进入

    1.19 在PNX无法进入

    Version & Environment 软件版本和环境

    • BDS Version [e.g. 1.19.1]
    • FakePlayer Version [e.g. actions]

    Describe the bug 你的问题的描述 A clear and concise description of what the bug is.

    To Reproduce(Optional) 复现该问题的方法(可选) null

    Screenshots or log 截图或日志 image

    Additional content 附加内容 null

    bug 
    opened by Arzxq 4
  • 关于如何在BDS开了在线验证(online-mode=true)的情况下添加假人的提问

    关于如何在BDS开了在线验证(online-mode=true)的情况下添加假人的提问

    开服版本:BDS 1.16.4 当前状况: BDS处:已开启在线验证(白名单需要开启在线验证才能用),并开启了白名单,添加了假人的名字(tool_man_1)并已执行过whitelist reload FakePlayer处:已配置好公钥并添加至server.properties中,在没有开启在线验证时能够成功添加假人。但在开启了在线验证后,添加的假人会不断地显示连接中、断开连接和重连(从BDS处可以发现它们没有加入游戏)

    因此想在这里请教一下,如何在BDS开了在线验证的情况下,向服务器内添加假人

    opened by VtaSkywalker 4
  • 将假人online状态持久化到配置文件中

    将假人online状态持久化到配置文件中

    一直以来有一个痛点:经常会使用FakePlayerManger下线不用的假人,正常情况下大部分假人基本都处于离线状态。 因此如果FakePlayer程序重启,所有假人(包括之前已经下线过的)都会全部重新连接上服务器,重启的一瞬间给服务器带来较大冲击,曾经因为这个坏过一些机器;另外重启程序之后还要特地去服中手动下线不需要的假人

    所以这个PR就是为了解决上面的问题:在假人数据中增加了onlineStatus项,记录假人最后的状态是在线还是离线。 当假人上线成功后将onlineStatus改为true并写回文件,当stopped后改为false同样写回 在程序启动时,检查每个假人的onlineStatus,仅当为true时自动执行connect

    enhancement 
    opened by yqs112358 3
  • 假人在地狱加载的三叉戟击杀生物没有掉落物?

    假人在地狱加载的三叉戟击杀生物没有掉落物?

    服务端版本:1.18.12 with LiteloaderBDS 2.1.3 假人版本:0.5.3-alpha 加载距离6区块 难度普通 生物生成开启

    一个烈焰人刷怪塔(用三叉戟绞肉机实现自动击杀),假人在烈焰人刷怪笼下方8格处挂机,但这个刷怪塔当正常玩家不在旁边时就没有产物,主世界里其他三个同样由假人加载并用了三叉戟绞肉机的刷怪塔都能正常工作。 加载BehaviorLog行为监控日志插件并运行刷怪塔一段时间后,发现插件记录到大量的烈焰人被三叉戟攻击和烈焰人死亡的事件(烈焰人正常生成并正常被击杀,但没有掉落物)。 卸载除BehaviorLog外的所有插件重新测试结果不变,可能是假人在地狱加载的三叉戟击杀生物没有掉落物。

    opened by win-researcher 3
  • BDS 1.17.40不受支持

    BDS 1.17.40不受支持

    故障:因为BDS 1.17.40使用协议版本为471,尝试在config中修改defaultProtocolVersion为471后运行: sudo ./FakePlayer java抛变量不合法错误: java.lang.IllegalArgumentException: Unsupported protocol version: 471 at com.ddf.fakeplayer.util.ProtocolVersionUtil.getPacketCodec(ProtocolVersionUtil.java:62) at com.ddf.fakeplayer.util.Config.load(Config.java:88) at com.ddf.fakeplayer.Main.main(Main.java:186)

    似乎是尚未支持471版本协议所致。

    环境:Ubuntu Server 20.04 LTS 64bit,同服务器上运行BDS,测试时所有防火墙规则禁用。java 8环境。

    opened by hanepudding 2
  • 只要客户端的假人一连接服务器就会一直报错

    只要客户端的假人一连接服务器就会一直报错

    Version & Environment 软件版本和环境

    • BDS Version [e.g. 1.19.51]
    • FakePlayer Version [e.g. 0.5.11]

    Describe the bug 你的问题的描述 A clear and concise description of what the bug is.

    • .RT
    • 打开假人客户端的时候正常(Windows 命令行模式),只要一有假人连接服务器就会疯狂报错
    • BDS那边显示有玩家连接
    17:16:33 INFO [Server] Player connected: Steve_D, xuid: -9199481192916243919
    17:16:39 INFO [Server] Player Spawned: Steve_D xuid: -9199481192916243919
    

    To Reproduce(Optional) 复现该问题的方法(可选) Steps to reproduce the behavior

    • 连接假人即报错,但假人确实连接上了

    Screenshots or log 截图或日志 If applicable, add screenshots or log to help explain your problem.

    一月 08, 2023 5:33:45 下午 com.nukkitx.network.raknet.RakNetClient lambda$new$0
    严重: An exception occurred in RakNet Client, address=0.0.0.0/0.0.0.0:0
    java.lang.IllegalArgumentException: expectedLength is less than 1 or greater than 2048 (2677)
            at com.nukkitx.network.util.Preconditions.checkArgument(Preconditions.java:194)
            at com.nukkitx.network.raknet.util.SplitPacketHelper.<init>(SplitPacketHelper.java:18)
            at com.nukkitx.network.raknet.RakNetSession.getReassembledPacket(RakNetSession.java:209)
            at com.nukkitx.network.raknet.RakNetSession.onRakNetDatagram(RakNetSession.java:365)
            at com.nukkitx.network.raknet.RakNetSession.onDatagram(RakNetSession.java:252)
            at com.nukkitx.network.raknet.pipeline.ClientMessageHandler.channelRead0(ClientMessageHandler.java:46)
            at com.nukkitx.network.raknet.pipeline.ClientMessageHandler.channelRead0(ClientMessageHandler.java:13)
            at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
            at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
            at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
            at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:97)
            at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
            at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
            at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
            at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
            at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
            at java.lang.Thread.run(Unknown Source)
    

    Additional content 附加内容 Add any other content about the problem here.

    bug 
    opened by cngege 0
  • SelectSlot有时操作无效

    SelectSlot有时操作无效

    Version & Environment 软件版本和环境

    • BDS Version 1.19.41
    • FakePlayer Version 0.5.10

    Describe the bug 你的问题的描述 见截图 image selectSlot 9 或 selectSlot 10时(刚扔进去的三叉戟)时,选择失败 但是选一个比较小的数(selectSlot 2)却会成功

    后面扔给假人一个铁块,选择铁块(selectSlot 11),又执行失败 image 整个过程后台无报错信息输出

    To Reproduce(Optional) 复现该问题的方法(可选) 玄学问题,不知道如何复现

    bug 
    opened by yqs112358 1
  • nk服务端无法使用

    nk服务端无法使用

    Version & Environment 软件版本和环境

    • PowerNukkitX 1.19.40-R1
    • FakePlayer Version [e.g. 0.5.10]

    Describe the bug 你的问题的描述 ERROR - Unable to decode packet java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsInt()" because the return value of "com.google.gson.JsonObject.get(String)" is null To Reproduce(Optional) 复现该问题的方法(可选) 使用FakePlayer链接服务器会出现该问题

    Additional content 附加内容

    bug 
    opened by CivicXFB 0
  • NK服务器无法使用

    NK服务器无法使用

    Version & Environment 软件版本和环境 -PowerNukkitX 1.19.40-R1

    • FakePlayer Version [e.g. 0.5.10]

    Describe the bug 你的问题的描述 ERROR - Unable to decode packet java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsInt()" because the return value of "com.google.gson.JsonObject.get(String)" is null To Reproduce(Optional) 复现该问题的方法(可选) 使用FakePlayer链接服务器会出现该问题

    Additional content 附加内容

    bug 
    opened by CivicXFB 0
  • 客户端线程发生异常

    客户端线程发生异常

    Version & Environment 软件版本和环境

    • BDS Version [e.g. 1.19.31.01]
    • FakePlayer Version [0.5.9]

    Describe the bug 你的问题的描述 添加假人时报错: 客户端线程发生异常: java.lang.AssertionError: Unable to initialize required encryption at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:277) at com.nukkitx.protocol.bedrock.BedrockSession.enableEncryption(BedrockSession.java:236) at com.ddf.fakeplayer.network.ClientPacketHandler.handle(ClientPacketHandler.java:94) at com.nukkitx.protocol.bedrock.packet.ServerToClientHandshakePacket.handle(ServerToClientHandshakePacket.java:19) at com.ddf.fakeplayer.client.Client.update(Client.java:294) at com.ddf.fakeplayer.client.Client$ClientThread.run(Client.java:561) Caused by: java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) at javax.crypto.Cipher.implInit(Cipher.java:805) at javax.crypto.Cipher.chooseProvider(Cipher.java:864) at javax.crypto.Cipher.init(Cipher.java:1396) at javax.crypto.Cipher.init(Cipher.java:1327) at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:274) ... 5 more

    To Reproduce(Optional) 复现该问题的方法(可选) Steps to reproduce the behavior

    Screenshots or log 截图或日志

    image

    Additional content 附加内容 trusted-key已添加到服务器,并重启过服务了

    bug 
    opened by updsky 0
Releases(v0.5.11)
Owner
DDF
DDF
A proxy hack utilities for Minecraft: Bedrock Edition

BedrockProxy A proxy hack utilities for Minecraft: Bedrock Edition Download Releases Run Proxy java -jar BedrockProxy-1.0-SNAPSHOT.jar Hack Utilities

null 18 Dec 15, 2022
Fabric mod that re-implements the Copper Horn that was added and removed in the Bedrock Previews

ReturnCopperHorns Fabric mod that re-implements the Copper Horn that was added and removed in the Bedrock Previews There are ten different copper horn

Potatoboy9999 3 Nov 26, 2022
A fast, customizable and compatible open source server for Minecraft: Java Edition

Glowstone A fast, customizable and compatible open source server for Minecraft: Java Edition. Introduction Glowstone is a lightweight, from scratch, o

Glowstone Project 1.7k Dec 31, 2022
A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge.

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge. Originally designed as a MCP Client (called Tephra), it is now being ported t

Peanut 130 Jan 1, 2023
An efficient map viewer for Minecraft seed in a nice GUI with utilities without ever needing to install Minecraft.

To download it head to the Releases section. To run it: either double click it on it if you have the Java Runtime (JRE) or use the command line (shift

Neil 127 Dec 24, 2022
A free mixin-based injection hacked-client for Minecraft using Minecraft Forge.

Custom LiquidBounce 1.8.9 build that aims to improve original visuals and bypasses, along with built-in ViaVersion to help you change from 1.8 to 1.17.1 without creating any other version branch.

epic group of paster 123 Jan 2, 2023
Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cross-chatting between Minecraft and Discord.

DiscordSync Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cros

AeonLucid 4 Dec 20, 2022
Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Haze 18 Jan 1, 2023
Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2.

MinecraftSnake Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2. Installation: Create a paperm

null 1 Sep 30, 2022
The Minecraft Mod API

Bukkit A Minecraft Server API. Website: http://bukkit.org Bugs/Suggestions: http://leaky.bukkit.org Contributing Guidelines: CONTRIBUTING.md Compilati

The Bukkit Project 2.2k Dec 31, 2022
Modifications to the Minecraft base files to assist in compatibility between mods.

MinecraftForge Forge is a free, open-source modding API all of your favourite mods use! Version Support 1.16.x Active 1.15.x LTS Download Forum Discor

Minecraft Forge 5.9k Jan 3, 2023
Equivalent Exchange 3 Apache 2 Equivalent Exchange 3 pahimar Equivalent-Exchange-3. Mods for Minecraft. License: Apache 2 , .

Welcome to Equivalent Exchange 3! All versions are available here Minecraft Forums page Compiling EE3 - For those that want the latest unreleased feat

Rob Davis 709 Dec 15, 2022
A Minecraft plugin API

SpongeAPI A mature Minecraft plugin API (not including an implementation), licensed under the MIT License. Homepage Source Issues Documentation Commun

SpongePowered 1.1k Dec 27, 2022
🗺️ Minecraft map editor and mod

A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting! Use it in creative, survival in sing

EngineHub 2.7k Jan 1, 2023
Essentials - Minecraft server command mod - Adds over 100 commands for use in-game to help manage a server

Essentials Development Readme The official repository is at: https://github.com/essentials/Essentials We use NetBeans 7.3 for development. Recommended

Essentials 811 Jan 7, 2023
BoardGames for Minecraft 1.13.2+

Boardgames This is a Minecraft Spigot Plugin written in Java for 1.13+. Current implemented games: Kniffel [WIP] Building This project uses maven. To

null 8 Dec 11, 2022
A library that provide informations for minecraft servers (players, maxplayers and motd)

MinecraftServerInformations MinecraftServerInformation is a java library for retrieving informations about Minecraft Servers. Installation Download th

null 10 Sep 11, 2022
Staff-Mode plugin for Minecraft servers.

DONUTSTAFF A Simple Staff Mode plugin for you Minecraft Server. This plugin goals to lightweight and fast. At the moment, is on a BETA phase, so pleas

null 10 Jan 28, 2022
A minecraft mod that allows additional windows to be opened alongside the game

Breakout API BreakoutAPI is a Minecraft mod which allows developers to create new windows that run alongside Minecraft. All the windows run on the sam

Raph Hennessy 11 Jan 3, 2023