question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.12.2 not supported and no error displayed

See original GitHub issue

Server: spigot git-Spigot-93e20b3-b8f84f3 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT), no plugins Client: npm 5.4.2

Steps to reproduce:

  1. clone repository
  2. run any example. In my case I did node jumper.js 192.168.0.220 25565 ChanChan
  3. bot connects for a couple of seconds and then simply disconnects. I get this behavior constantly

On server side:

[22:41:21] [Server thread/INFO]: ChanChan lost connection: Disconnected
[22:41:21] [Server thread/INFO]: ChanChan left the game

I tried to debug the minecraft protocol, nothing seems off, client code is not throwing any errors.

Same goes with vanilla server

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
BarnabyDcommented, Dec 13, 2017

1.12.2 seems to mostly work (it is listed as supported on minecraft-data) The issue of disconnecting 20 seconds after joining seems to be because “Keep Alive” was changed in 1.12.2. (which is defaulted to 20 seconds)

It works with 25 or more seconds, so using mineflayer you can set the “checkTimeoutInterval” option. var mineflayer = require('mineflayer'); var bot = mineflayer.createBot({ host: "localhost", // optional port: 25565, // optional username: "email@example.com", // email and password are required only for password: "12345678", // online-mode=true servers checkTimeoutInterval: (25 * 10000) // run KeepAlive every 25 seconds });

The original 20 seconds can be found in “minecraft-protocol\src\client\keepalive.js:7” const checkTimeoutInterval = options.checkTimeoutInterval || 20 * 1000;

0reactions
rom1504commented, Aug 26, 2018

1.13 supported

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.12.2 Server not showing anything - Support & Bug Reports
Hello, When I launch the server (forge-1.12.2-14.23.4.2738-universal) it starts the server and it's just blank. And in-game it says it's a ...
Read more >
Problem with setup of 1.12.2 forge server : r/feedthebeast
Hey guys, I'm trying to set up a modded server for 1.12.2 and i'm having some ... Show me your batch file, and...
Read more >
Forge 1.12.2 server wont start - Support - Minecraft Forum
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.
Read more >
Your browser can't play this video. Learn more - YouTube
How To Fix Your 1.17 & Below Minecraft Servers! (Minecraft Server Java Error Fix) (1.8+/1.12+/1.17+)MINECRAFT SERVER HOSTING!
Read more >
Minecraft 1.12.2 modded server: "problem occured"
I have a minecraft modded server on 1.12.2, and it works for the most part, but it gives me an error. The minecraft...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found