Code Monkey home page Code Monkey logo

pork2b2tbot's Introduction

Pork2b2tBot

Build Status Discord

Spambot, web overview and proxy all in one :D

pork2b2tbot's People

Contributors

damatrix avatar emotionallove avatar ironexception avatar vademon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pork2b2tbot's Issues

[Suggestion] More advanced antiafk methods

I suggest adding more antiafk methods as the current implement antiafk method doesn't work on 2b.

  • Support for random movement, in random directions at random intervals, much like future's antiafk

  • Support for afk fishing. Self explanatory, find fishing rod in inventory, move it to hotbar and fish.

  • Possibly support for breaking/placing a block every so often.

Some issues submitted to me on Discord

  • Entities not rideable. (confirmed as invalid)
  • When you log your inventory is empty until you click on your armor or open a chest (actually more complex)
  • Godportalmode with Future doesn't work, some other hacks too.
  • Sometimes chunks do not load properly, causing huge void holes, especially after logging in.
  • "Too many chunks sent" shit
  • Buttons works after you press them for 3-4 times

error running jenkins build

com.github.steveice10.mc.auth.exception.request.ServiceUnavailableException: Could not make request to 'https://authserver.mojang.com/authenticate'.
        at com.github.steveice10.mc.auth.util.HTTP.makeRequest(HTTP.java:64)
        at com.github.steveice10.mc.auth.service.AuthenticationService.loginWithPassword(AuthenticationService.java:280)
        at com.github.steveice10.mc.auth.service.AuthenticationService.login(AuthenticationService.java:217)
        at com.github.steveice10.mc.protocol.MinecraftProtocol.<init>(MinecraftProtocol.java:108)
        at com.github.steveice10.mc.protocol.MinecraftProtocol.<init>(MinecraftProtocol.java:94)
        at com.github.steveice10.mc.protocol.MinecraftProtocol.<init>(MinecraftProtocol.java:90)
        at net.daporkchop.toobeetooteebot.TooBeeTooTeeBot.start(TooBeeTooTeeBot.java:188)
        at net.daporkchop.toobeetooteebot.TooBeeTooTeeBot.main(TooBeeTooTeeBot.java:95)
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
        at com.google.gson.Gson.assertFullConsumption(Gson.java:864)
        at com.google.gson.Gson.fromJson(Gson.java:854)
        at com.google.gson.Gson.fromJson(Gson.java:802)
        at com.google.gson.Gson.fromJson(Gson.java:774)
        at com.github.steveice10.mc.auth.util.HTTP.makeRequest(HTTP.java:62)
        ... 7 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1568)
        at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1409)
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:542)
        at com.google.gson.stream.JsonReader.peek(JsonReader.java:425)
        at com.google.gson.Gson.assertFullConsumption(Gson.java:860)
        ... 11 more

I tried a lots of thing but i can't fix this error

[15/04/2020 10:07:51] [INFO] Starting Pork2b2tBot v0.0.1... [15/04/2020 10:07:51] [Auth] [INFO] Logging in... [15/04/2020 10:07:51] [Auth] [SUCCESS] Logged in. [15/04/2020 10:07:51] [Client] [INFO] Connecting to 2b2t.org:25565... [15/04/2020 10:07:53] [Client] [SUCCESS] Connected to 2b2t.org/23.145.208.9:25565! [15/04/2020 10:07:55] [Client] [INFO] Disconnecting from server... [15/04/2020 10:07:55] [Client] [INFO] Disconnected. [15/04/2020 10:07:55] [Client] [ALERT] **************************************** [15/04/2020 10:07:55] [Client] [ALERT] * [15/04/2020 10:07:55] [Client] [ALERT] * com.github.steveice10.mc.auth.exception.request.RequestException: Access Token can not be null or empty. [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.mc.auth.util.HTTP.makeRequest(HTTP.java:82) [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.mc.auth.service.SessionService.joinServer(SessionService.java:104) [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.mc.protocol.ClientListener.packetReceived(ClientListener.java:55) [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51) [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143) [15/04/2020 10:07:55] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpPacketCodec.decode(TcpPacketCodec.java:48) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [15/04/2020 10:07:55] [Client] [ALERT] * at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [15/04/2020 10:07:55] [Client] [ALERT] * at java.lang.Thread.run(Unknown Source) [15/04/2020 10:07:55] [Client] [ALERT] * [15/04/2020 10:07:55] [Client] [ALERT] **************************************** [15/04/2020 10:07:55] [ALERT] **************************************** [15/04/2020 10:07:55] [ALERT] * [15/04/2020 10:07:55] [ALERT] * java.util.concurrent.ExecutionException: com.github.steveice10.mc.auth.exception.request.RequestException: Access Token can not be null or empty. [15/04/2020 10:07:55] [ALERT] * at java.util.concurrent.CompletableFuture.reportGet(Unknown Source) [15/04/2020 10:07:55] [ALERT] * at java.util.concurrent.CompletableFuture.get(Unknown Source) [15/04/2020 10:07:55] [ALERT] * at net.daporkchop.toobeetooteebot.client.PorkClientSession.getDisconnectReason(PorkClientSession.java:49) [15/04/2020 10:07:55] [ALERT] * at net.daporkchop.toobeetooteebot.Bot.start(Bot.java:221) [15/04/2020 10:07:55] [ALERT] * at net.daporkchop.toobeetooteebot.Bot.main(Bot.java:123) [15/04/2020 10:07:55] [ALERT] * Caused by: com.github.steveice10.mc.auth.exception.request.RequestException: Access Token can not be null or empty. [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.mc.auth.util.HTTP.makeRequest(HTTP.java:82) [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.mc.auth.service.SessionService.joinServer(SessionService.java:104) [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.mc.protocol.ClientListener.packetReceived(ClientListener.java:55) [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51) [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143) [15/04/2020 10:07:55] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpPacketCodec.decode(TcpPacketCodec.java:48) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [ALERT] * at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:647) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) [15/04/2020 10:07:55] [ALERT] * at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) [15/04/2020 10:07:55] [ALERT] * at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) [15/04/2020 10:07:55] [ALERT] * at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [15/04/2020 10:07:55] [ALERT] * at java.lang.Thread.run(Unknown Source) [15/04/2020 10:07:55] [ALERT] * [15/04/2020 10:07:55] [ALERT] **************************************** [15/04/2020 10:07:55] [INFO] Shutting down...

Uncaught exception spam when a client tries to connect to a disconnected proxy

Doesn't crash, but shouldn't happen anyway.

Client reconnect timer: 5s, hence multiple messages between proxy reconnections to the server.

[09/01/2021 09:05:30] [Client] [INFO] Reconnecting in 1
[09/01/2021 09:05:31] [Auth] [INFO] Logging in...
[09/01/2021 09:05:31] [Auth] [SUCCESS] Logged in.
[09/01/2021 09:05:31] [Client] [INFO] Connecting to 2b2t.org:25565 using :::0
[09/01/2021 09:05:32] [Client] [SUCCESS] Connected to connect.2b2t.org./destIP:25565!
[09/01/2021 09:05:32] [Client] [INFO] Connected to 2b2t.org:25565 using SourceIP:55245
[09/01/2021 09:05:32] [INFO] Saving config...
[09/01/2021 09:05:32] [INFO] Config saved.
[09/01/2021 09:05:32] [Client] [INFO] Disconnected.
[09/01/2021 09:05:32] [Client] [INFO] Disconnected. Reason: Connection closed.
[09/01/2021 09:05:32] [Client] [INFO] Reconnecting in 31
[09/01/2021 09:05:33] [Client] [INFO] Reconnecting in 30
[09/01/2021 09:05:34] [Client] [INFO] Reconnecting in 29
[09/01/2021 09:05:35] [ALERT] ****************************************
[09/01/2021 09:05:35] [ALERT] *
[09/01/2021 09:05:35] [ALERT] * Uncaught exception in thread "Thread[Thread-127,10,main]"!
[09/01/2021 09:05:35] [ALERT] *
[09/01/2021 09:05:35] [ALERT] * java.lang.NullPointerException
[09/01/2021 09:05:35] [ALERT] *     at net.daporkchop.toobeetooteebot.Bot.lambda$startServer$6(Bot.java:328)
[09/01/2021 09:05:35] [ALERT] *     at com.github.steveice10.mc.protocol.ServerListener$UserAuthTask.run(ServerListener.java:209)
[09/01/2021 09:05:35] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[09/01/2021 09:05:35] [ALERT] *
[09/01/2021 09:05:35] [ALERT] ****************************************
[09/01/2021 09:05:35] [Client] [INFO] Reconnecting in 28
[09/01/2021 09:05:36] [Client] [INFO] Reconnecting in 27
[09/01/2021 09:05:37] [Client] [INFO] Reconnecting in 26
[09/01/2021 09:05:38] [Client] [INFO] Reconnecting in 25
[09/01/2021 09:05:39] [Client] [INFO] Reconnecting in 24
[09/01/2021 09:05:40] [Client] [INFO] Reconnecting in 23
[09/01/2021 09:05:40] [ALERT] ****************************************
[09/01/2021 09:05:40] [ALERT] *
[09/01/2021 09:05:40] [ALERT] * Uncaught exception in thread "Thread[Thread-129,10,main]"!
[09/01/2021 09:05:40] [ALERT] *
[09/01/2021 09:05:40] [ALERT] * java.lang.NullPointerException
[09/01/2021 09:05:40] [ALERT] *     at net.daporkchop.toobeetooteebot.Bot.lambda$startServer$6(Bot.java:328)
[09/01/2021 09:05:40] [ALERT] *     at com.github.steveice10.mc.protocol.ServerListener$UserAuthTask.run(ServerListener.java:209)
[09/01/2021 09:05:40] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[09/01/2021 09:05:40] [ALERT] *
[09/01/2021 09:05:40] [ALERT] ****************************************
[09/01/2021 09:05:41] [Client] [INFO] Reconnecting in 22
[09/01/2021 09:05:42] [Client] [INFO] Reconnecting in 21
[09/01/2021 09:05:43] [Client] [INFO] Reconnecting in 20
[09/01/2021 09:05:44] [Client] [INFO] Reconnecting in 19
[09/01/2021 09:05:45] [Client] [INFO] Reconnecting in 18
[09/01/2021 09:05:46] [Client] [INFO] Reconnecting in 17
[09/01/2021 09:05:46] [ALERT] ****************************************
[09/01/2021 09:05:46] [ALERT] *
[09/01/2021 09:05:46] [ALERT] * Uncaught exception in thread "Thread[Thread-131,10,main]"!
[09/01/2021 09:05:46] [ALERT] *
[09/01/2021 09:05:46] [ALERT] * java.lang.NullPointerException
[09/01/2021 09:05:46] [ALERT] *     at net.daporkchop.toobeetooteebot.Bot.lambda$startServer$6(Bot.java:328)
[09/01/2021 09:05:46] [ALERT] *     at com.github.steveice10.mc.protocol.ServerListener$UserAuthTask.run(ServerListener.java:209)
[09/01/2021 09:05:46] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[09/01/2021 09:05:46] [ALERT] *
[09/01/2021 09:05:46] [ALERT] ****************************************
[09/01/2021 09:05:47] [Client] [INFO] Reconnecting in 16

Spectator mode can't noclip

Self-explanatory, going in spectator mode doesn't tell the connecting clients that we can noclip into blocks.

EDIT: Also sub issue, I found this proxy that's a fork of this one that does not provide credit to the original, or provide the source code. http://killet.tk/maxprox/ (Breaking the license)

Error dependencies

[ERROR] Failed to execute goal on project mcprotocollib: Could not resolve dependencies for project com.github.steveice10:mcprotocollib:jar:1.13.2-1-SNAPSHOT: Failed to collect dependencies at com.github.steveice10:opennbt:jar:1.1: Failed to read artifact descriptor for com.github.steveice10:opennbt:jar:1.1: Could not transfer artifact com.github.steveice10:opennbt:pom:1.1 from/to jitpack.io (https://jitpack.io): java.security.ProviderException: java.security.InvalidKeyException: EC parameters error: no such provider: SunEC -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Tutorial

Could you explain how to use the latest version, when I open the .jar, it's just a blank screen, open the config and I config it, butI can't connect and don't know what to put at a bind host, in short I'm asking, could you do a quick tutorial on how to use toobeetootee bot

Update checker

Would be nice to be notified when a new version is made available.

How can i use it

Im using Windows 7 and i could not use this thing. can u help me? And please explain it step by step.

Java.NullPointerException crash

[06/11/2019 19:34:11] [Client] [ALERT] ****************************************
[06/11/2019 19:34:11] [Client] [ALERT] * 
[06/11/2019 19:34:11] [Client] [ALERT] * java.lang.NullPointerException
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:30)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:27)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:63)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:50)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at java.lang.Thread.run(Thread.java:748)
[06/11/2019 19:34:11] [Client] [ALERT] * 
[06/11/2019 19:34:11] [Client] [ALERT] ****************************************
[06/11/2019 19:34:11] [Client] [INFO] Disconnecting from server...
[06/11/2019 19:34:11] [Client] [INFO] Disconnected.
[06/11/2019 19:34:11] [Server] [INFO] Player disconnected: null
[06/11/2019 19:34:11] [Client] [ALERT] ****************************************
[06/11/2019 19:34:11] [Client] [ALERT] * 
[06/11/2019 19:34:11] [Client] [ALERT] * java.lang.NullPointerException
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:30)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:27)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:63)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:50)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[06/11/2019 19:34:11] [Client] [ALERT] * 	at java.lang.Thread.run(Thread.java:748)
[06/11/2019 19:34:11] [Client] [ALERT] * 
[06/11/2019 19:34:11] [Client] [ALERT] ****************************************
[06/11/2019 19:34:11] [ALERT] ****************************************
[06/11/2019 19:34:11] [ALERT] * 
[06/11/2019 19:34:11] [ALERT] * java.util.concurrent.ExecutionException: java.lang.NullPointerException
[06/11/2019 19:34:11] [ALERT] * 	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
[06/11/2019 19:34:11] [ALERT] * 	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.PorkClientSession.getDisconnectReason(PorkClientSession.java:50)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.Bot.start(Bot.java:226)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.Bot.main(Bot.java:128)
[06/11/2019 19:34:11] [ALERT] * Caused by: java.lang.NullPointerException
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:30)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityHeadLookHandler.apply(EntityHeadLookHandler.java:27)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:63)
[06/11/2019 19:34:11] [ALERT] * 	at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:50)
[06/11/2019 19:34:11] [ALERT] * 	at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[06/11/2019 19:34:11] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[06/11/2019 19:34:11] [ALERT] * 	at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[06/11/2019 19:34:11] [ALERT] * 	at java.lang.Thread.run(Thread.java:748)
[06/11/2019 19:34:11] [ALERT] * 
[06/11/2019 19:34:11] [ALERT] ****************************************
[06/11/2019 19:34:11] [INFO] Shutting down...
[06/11/2019 19:34:11] [Server] [INFO] Closing server...
[06/11/2019 19:34:11] [Server] [SUCCESS] Server closed.
[06/11/2019 19:34:14] [WebSocket] [INFO] Shutting down...
[06/11/2019 19:34:14] [WebSocket] [SUCCESS] Shut down.

java -version:
openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1~deb9u1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Happened while using the bot as a proxy. Was using WWE client + Baritone process.

Autorespawn

Any way to enable autorespawn? as messages dont send while dead.

I don't see it in the config.

Crashes when opening Statistics

Happened multiple times in a row, got tired of going through the queue. Using latest JDK 8, compiled with homebrew's maven on macos.

Error:

Disconnecting... Reason: io.netty.handler.codec.DecoderException: java.lang.IllegalArgumentException: Value stat.enderchestOpened has no mapping for key class com.github.steveice10.mc.protocol.data.game.statistic.GenericStatistic.
Disconnected

NullPointerException whilst logging in after recovering from ratelimit

[root@SashaServer ~]# java -jar 2b2tbot-0.0.1-1.12.2.jar
Attempting login with username and password...
Being rate limited, waiting...
Success!
java.lang.NullPointerException
        at net.daporkchop.toobeetooteebot.TooBeeTooTeeBot.start(TooBeeTooTeeBot.java:188)
        at net.daporkchop.toobeetooteebot.TooBeeTooTeeBot.main(TooBeeTooTeeBot.java:77)
[root@SashaServer ~]#

Version of java:

[root@SashaServer~]# java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
[root@SashaServer ~]#

Bot starts up and runs fine using that account literally everywhere else i use it (My PC, Amazon ECS container), but not on an OVH linux machine.

If config is needed, ask me.

Bot completely crashes after sometimes failing to connect

On server restarts (2b2t), after some attempts the bot sometimes fails to connect and crashes entirely.

[24/08/2020 00:20:37] [Client] [INFO] Disconnected.
[24/08/2020 00:20:37] [Client] [INFO] Disconnected. Reason: Connection closed.
[24/08/2020 00:20:37] [Client] [INFO] Reconnecting in 1
[24/08/2020 00:20:38] [Auth] [INFO] Logging in...
[24/08/2020 00:20:39] [ALERT] ****************************************
[24/08/2020 00:20:39] [ALERT] * 
[24/08/2020 00:20:39] [ALERT] * 
java.lang.NullPointerException
[24/08/2020 00:20:39] [ALERT] * 
    at com.github.steveice10.mc.auth.service.AuthenticationService.loginWithToken(AuthenticationService.java:316)
[24/08/2020 00:20:39] [ALERT] * 
    at com.github.steveice10.mc.auth.service.AuthenticationService.login(AuthenticationService.java:211)
[24/08/2020 00:20:39] [ALERT] * 
    at net.daporkchop.toobeetooteebot.util.LoggerInner.handleRelog(LoggerInner.java:57)
[24/08/2020 00:20:39] [ALERT] * 
    at net.daporkchop.toobeetooteebot.Bot.logIn(Bot.java:328)
[24/08/2020 00:20:39] [ALERT] * 
    at net.daporkchop.toobeetooteebot.Bot.start(Bot.java:216)
[24/08/2020 00:20:39] [ALERT] * 
    at net.daporkchop.toobeetooteebot.Bot.main(Bot.java:101)
[24/08/2020 00:20:39] [ALERT] * 
[24/08/2020 00:20:39] [ALERT] ****************************************
[24/08/2020 00:20:39] [INFO] Shutting down...
[24/08/2020 00:20:39] [INFO] Saving config...
[24/08/2020 00:20:39] [INFO] Config saved.

NPE and Crash when trying to sleep in bed during day

Server: our favourite

[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] * java.lang.NullPointerException
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.doParseJson(JsonTextParser.java:130)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.parse(JsonTextParser.java:98)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:59)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:39)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger.doLog(SimpleLogger.java:91)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger$ChannelLogger.log(SimpleLogger.java:158)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.Logger.info(Logger.java:102)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:38)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:35)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:64)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:57)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[08/01/2021 23:38:57] [Client] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [INFO] Disconnecting from server...
[08/01/2021 23:38:57] [Client] [INFO] Disconnected.
[08/01/2021 23:38:57] [Server] [INFO] Player disconnected: null
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] * java.lang.NullPointerException
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.doParseJson(JsonTextParser.java:130)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.JsonTextParser.parse(JsonTextParser.java:98)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:59)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.minecraft.text.parser.AutoMCFormatParser.parse(AutoMCFormatParser.java:39)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger.doLog(SimpleLogger.java:91)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.impl.SimpleLogger$ChannelLogger.log(SimpleLogger.java:158)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.lib.logging.Logger.info(Logger.java:102)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:38)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.handler.incoming.ChatHandler.apply(ChatHandler.java:35)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:64)
[08/01/2021 23:38:57] [Client] [ALERT] *     at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:57)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[08/01/2021 23:38:57] [Client] [ALERT] *     at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[08/01/2021 23:38:57] [Client] [ALERT] *     at java.lang.Thread.run(Thread.java:748)
[08/01/2021 23:38:57] [Client] [ALERT] *
[08/01/2021 23:38:57] [Client] [ALERT] ****************************************
[08/01/2021 23:38:57] [Client] [INFO] Disconnected. Reason: java.util.concurrent.ExecutionException: java.lang.NullPointerException

It probably tried to parse the plaintext bed message as JSON?

Shame, I wanted to afk during the night. Good night!..

Player entities don't render properly

Players don't render where they actually are in the world, only where they are you first join the proxy server. Also, players don't appear with any armor or items.

Error: java.lang.ArrayIndexOutOfBoundsException

When i start my bot on a linux vps this error pops up

[13/03/2020 08:13:06] [INFO] Loading config...
[13/03/2020 08:13:06] [INFO] Config loaded.
[13/03/2020 08:13:06] [INFO] Starting Pork2b2tBot v0.2.5...
[13/03/2020 08:13:06] [Auth] [INFO] Logging in...
[13/03/2020 08:13:07] [Auth] [SUCCESS] Logged in.
[13/03/2020 08:13:07] [Auth] [INFO] Logging in...
[13/03/2020 08:13:07] [Auth] [SUCCESS] Logged in.
[13/03/2020 08:13:07] [Client] [INFO] Connecting to 91.218.64.202:25565...
[13/03/2020 08:13:08] [Client] [SUCCESS] Connected to /91.218.64.202:25565!
[13/03/2020 08:13:08] [INFO] Saving config...
[13/03/2020 08:13:08] [INFO] Config saved.
[13/03/2020 08:13:08] [Chat] [INFO]
[13/03/2020 08:13:08] [Chat] [INFO]
[13/03/2020 08:13:08] [Chat] [INFO] Keine Effekte ausgewählt
[13/03/2020 08:13:08] [Chat] [INFO] §b§nKlicke hier um das Menu aufzumachen.
[13/03/2020 08:13:08] [Chat] [INFO]
[13/03/2020 08:13:08] [Client] [ALERT] ****************************************
[13/03/2020 08:13:08] [Client] [ALERT] *
[13/03/2020 08:13:08] [Client] [ALERT] * java.lang.ArrayIndexOutOfBoundsException
[13/03/2020 08:13:08] [Client] [ALERT] * at java.lang.System.arraycopy(Native Method)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:35)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:30)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:61)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:52)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[13/03/2020 08:13:08] [Client] [ALERT] * at java.lang.Thread.run(Thread.java:748)
[13/03/2020 08:13:08] [Client] [ALERT] *
[13/03/2020 08:13:08] [Client] [ALERT] ****************************************
[13/03/2020 08:13:08] [Client] [INFO] Disconnecting from server...
[13/03/2020 08:13:08] [Client] [ALERT] ****************************************
[13/03/2020 08:13:08] [Client] [ALERT] *
[13/03/2020 08:13:08] [Client] [ALERT] * java.lang.ArrayIndexOutOfBoundsException
[13/03/2020 08:13:08] [Client] [ALERT] * at java.lang.System.arraycopy(Native Method)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:35)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:30)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:61)
[13/03/2020 08:13:08] [Client] [ALERT] * at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:52)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[13/03/2020 08:13:08] [Client] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[13/03/2020 08:13:08] [Client] [ALERT] * at java.lang.Thread.run(Thread.java:748)
[13/03/2020 08:13:08] [Client] [ALERT] *
[13/03/2020 08:13:08] [Client] [ALERT] ****************************************
[13/03/2020 08:13:08] [ALERT] ****************************************
[13/03/2020 08:13:08] [ALERT] *
[13/03/2020 08:13:08] [ALERT] * java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
[13/03/2020 08:13:08] [ALERT] * at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
[13/03/2020 08:13:08] [ALERT] * at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.client.PorkClientSession.getDisconnectReason(PorkClientSession.java:52)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.Bot.start(Bot.java:198)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.Bot.main(Bot.java:97)
[13/03/2020 08:13:08] [ALERT] * Caused by: java.lang.ArrayIndexOutOfBoundsException
[13/03/2020 08:13:08] [ALERT] * at java.lang.System.arraycopy(Native Method)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:35)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.client.handler.incoming.SetWindowItemsHandler.apply(SetWindowItemsHandler.java:30)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:61)
[13/03/2020 08:13:08] [ALERT] * at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:52)
[13/03/2020 08:13:08] [ALERT] * at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[13/03/2020 08:13:08] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
[13/03/2020 08:13:08] [ALERT] * at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
[13/03/2020 08:13:08] [ALERT] * at java.lang.Thread.run(Thread.java:748)
[13/03/2020 08:13:08] [ALERT] *
[13/03/2020 08:13:08] [ALERT] ****************************************

instant disconnect (0.2.3)

after waiting and while I was logged in bot, I was instantly disconnected after 2b2t world loading.
bot version: 0.2.3-1.12.2

here is the log:

[02/12/2019 19:16:43] [Chat] [INFO] Position in queue: 4
[02/12/2019 19:16:53] [Chat] [INFO] Position in queue: 2
[02/12/2019 19:17:01] [Chat] [INFO] Connecting to the server...
[02/12/2019 19:17:02] [Chat] [INFO] <huevosrotos> > Tienda para hispanohablantes https://discord.gg/W9UP8bN
[02/12/2019 19:17:02] [Chat] [INFO] <6b9t> BLACK FRIDAY 50% OFF https://discord.gg/TtGqusM
[02/12/2019 19:17:02] [Chat] [INFO] <10Days> Ligma Balls
....
[02/12/2019 19:17:05] [Chat] [INFO] <Nollie180> >Almost every block in the game here https://discord.gg/Xn3brD2
[02/12/2019 19:17:06] [Client] [INFO] Disconnecting from server...
[02/12/2019 19:17:06] [Server] [INFO] Player disconnected: eth-west-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[02/12/2019 19:17:06] [Client] [INFO] Disconnected.
[02/12/2019 19:17:06] [Client] [INFO] Disconnected. Reason: You have lost connection to the server
[02/12/2019 19:17:06] [Client] [INFO] Reconnecting in 10
[02/12/2019 19:17:07] [Client] [INFO] Reconnecting in 9
[02/12/2019 19:17:08] [Client] [INFO] Reconnecting in 8
[02/12/2019 19:17:09] [Client] [INFO] Reconnecting in 7
[02/12/2019 19:17:10] [Client] [INFO] Reconnecting in 6
[02/12/2019 19:17:11] [Client] [INFO] Reconnecting in 5
[02/12/2019 19:17:12] [Client] [INFO] Reconnecting in 4
[02/12/2019 19:17:13] [Client] [INFO] Reconnecting in 3
[02/12/2019 19:17:14] [Server] [INFO] Player connected: null
Exception in thread "Thread-19" java.lang.NullPointerException
	at net.daporkchop.toobeetooteebot.Bot.lambda$startServer$10(Bot.java:320)
	at com.github.steveice10.mc.protocol.ServerListener$UserAuthTask.run(ServerListener.java:198)
	at java.lang.Thread.run(Thread.java:748)
[02/12/2019 19:17:14] [Client] [INFO] Reconnecting in 2
[02/12/2019 19:17:15] [Client] [INFO] Reconnecting in 1
[02/12/2019 19:17:16] [Auth] [INFO] Logging in...
[02/12/2019 19:17:16] [Auth] [SUCCESS] Logged in.
[02/12/2019 19:17:16] [Client] [INFO] Connecting to 2b2t.org:25565...
[02/12/2019 19:17:17] [Client] [SUCCESS] Connected to 2b2t.org/31.220.12.242:25565!
[02/12/2019 19:17:17] [Chat] [INFO] 2b2t is full
[02/12/2019 19:17:23] [Chat] [INFO] Position in queue: 238
[02/12/2019 19:17:33] [Chat] [INFO] Position in queue: 238

ClassCastException: data.entity.EntityObject cannot be cast to data.entity.EntityEquipment

ClassCastException: net.daporkchop.toobeetooteebot.util.cache.data.entity.EntityObject cannot be cast to net.daporkchop.toobeetooteebot.util.cache.data.entity.EntityEquipment

at least it doesn't crash <3

log.zip

10:47:44] [Cache] [DEBUG] Cached chunk (6960, 7568)
10:47:44] [Server] [DEBUG] Sending packet: class com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerChunkDataPacket@71af9685
10:47:44] [Client] [DEBUG] Received packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnObjectPacket@27b2c744
10:47:44] [Server] [DEBUG] Sending packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnObjectPacket@27b2c744
10:47:44] [Client] [DEBUG] Received packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityMetadataPacket@60fad57b
10:47:44] [Server] [DEBUG] Sending packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityMetadataPacket@60fad57b
10:47:44] [Client] [DEBUG] Received packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityPropertiesPacket@16ddd848
10:47:44] [Server] [DEBUG] Sending packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityPropertiesPacket@16ddd848
10:47:44] [Client] [DEBUG] Received packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityVelocityPacket@1b4b7fa8
10:47:44] [Server] [DEBUG] Sending packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityVelocityPacket@1b4b7fa8
10:47:44] [Client] [DEBUG] Received packet: class com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityEquipmentPacket@2a720362
10:47:44] [Server] [DEBUG] Sent packet: ServerChunkDataPacket(column=Column(x=6960, z=7567, chunks=[Chunk(blocks=BlockStorage(bitsPerEntry=4, states=[BlockState(id=0, data=0), BlockState(id=7, data=0), BlockState(id=3, data=0), BlockState(id=1, data=0), BlockState(id=1, data=5), BlockState(id=15, data=0), BlockState(id=16, data=0), BlockState(id=1, data=3), BlockState(id=14, data=0), BlockState(id=1, data=1), BlockState(id=73, data=0)], storage=FlexibleStorage(data=long[](length=256), bitsPerEntry=4, size=4096, maxEntryValue=15)), blocklight=NibbleArray3d(data=byte[](length=2048)), skylight=NibbleArray3d(data=byte[](length=2048))), Chunk(blocks=BlockStorage(bitsPerEntry=4, states=[BlockState(id=0, data=0), BlockState(id=1, data=0), BlockState(id=1, data=1), BlockState(id=3, data=0), BlockState(id=1, data=3), BlockState(id=1, data=5), BlockState(id=15, data=0), BlockState(id=21, data=0), BlockState(id=16, data=0), BlockState(id=14, data=0)], storage=FlexibleStorage(data=long[](length=256), bitsPerEntry=4, size=4096, maxEntryValue=15)), blocklight=NibbleArray3d(data=byte[](length=2048)), skylight=NibbleArray3d(data=byte[](length=2048))), Chunk(blocks=BlockStorage(bitsPerEntry=4, states=[BlockState(id=0, data=0), BlockState(id=1, data=0), BlockState(id=1, data=1), BlockState(id=1, data=3), BlockState(id=1, data=5), BlockState(id=15, data=0), BlockState(id=3, data=0), BlockState(id=16, data=0), BlockState(id=12, data=0), BlockState(id=13, data=0), BlockState(id=9, data=0)], storage=FlexibleStorage(data=long[](length=256), bitsPerEntry=4, size=4096, maxEntryValue=15)), blocklight=NibbleArray3d(data=byte[](length=2048)), skylight=NibbleArray3d(data=byte[](length=2048))), Chunk(blocks=BlockStorage(bitsPerEntry=4, states=[BlockState(id=0, data=0), BlockState(id=9, data=0)], storage=FlexibleStorage(data=long[](length=256), bitsPerEntry=4, size=4096, maxEntryValue=15)), blocklight=NibbleArray3d(data=byte[](length=2048)), skylight=NibbleArray3d(data=byte[](length=2048))), null, null, null, null, null, null, null, null, null, null, null, null], biomeData=byte[](length=256), tileEntities=[], skylight=true))@4bc199d0
10:47:44] [Client] [WARN] Received ServerEntityEquipmentPacket for non-equipment entity (id=3342388)
10:47:44] [Client] [WARN] 
10:47:44] [Client] [WARN] java.lang.ClassCastException: net.daporkchop.toobeetooteebot.util.cache.data.entity.EntityObject cannot be cast to net.daporkchop.toobeetooteebot.util.cache.data.entity.EntityEquipment
10:47:44] [Client] [WARN]     at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityEquipmentHandler.apply(EntityEquipmentHandler.java:39)
10:47:44] [Client] [WARN]     at net.daporkchop.toobeetooteebot.client.handler.incoming.entity.EntityEquipmentHandler.apply(EntityEquipmentHandler.java:35)
10:47:44] [Client] [WARN]     at net.daporkchop.toobeetooteebot.util.handler.HandlerRegistry.handleInbound(HandlerRegistry.java:64)
10:47:44] [Client] [WARN]     at net.daporkchop.toobeetooteebot.client.ClientListener.packetReceived(ClientListener.java:57)
10:47:44] [Client] [WARN]     at com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
10:47:44] [Client] [WARN]     at com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:143)
10:47:44] [Client] [WARN]     at com.github.steveice10.packetlib.tcp.TcpSession$3.run(TcpSession.java:343)
10:47:44] [Client] [WARN]     at java.lang.Thread.run(Thread.java:748)

Rewrite: TODO list

  • GUI interface
  • Interactive console
  • WebSocket protocol thingy
  • Multi-client? Probably uneeded...
  • Possibly some kind of plugin system
  • Possibly some kind of proxy-level command system

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.