1.12.2 not supported and no error displayed
See original GitHub issueServer: 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:
- clone repository
- run any example. In my case I did
node jumper.js 192.168.0.220 25565 ChanChan
- 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:
- Created 6 years ago
- Comments:17 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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;
1.13 supported