#3944·mineflayer

TCPShield flags it and kicks it.

Author: mark-c-makerCreated Jul 15, 2026Updated Sep 17, 2026
Labelspossible bugStage1
  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: #.#.#
  • server: vanilla/spigot/paper #.#.#
  • node: #.#.#

Detailed description of a problem

When trying to use Mineflayer on a server with TCPSheild, it will disconnect. https://tcpshield.com/

What did you try yet?

I have tried many things. Did you try any method from the API? Did you try any example? Any error from those? It drops my connection instantly.

Your current code

javascript
const mineflayer = require('mineflayer')

const bot = mineflayer.createBot({
  host: 'mc.arch.lol',
  port: 25565,
  username: '**********',
  auth: 'offline'
})

bot.on('login', () => {
  console.log('[Bot] Logged in!')
})

bot.on('spawn', () => {
  console.log('[Bot] Spawned in world!')
})

bot.on('chat', (username, message) => {
  console.log(`[Chat] ${username}: ${message}`)
})

bot.on('kicked', (reason) => {
  console.log('[Bot] KICKED:', JSON.stringify(reason))
})

bot.on('error', (err) => {
  console.log('[Bot] Error:', err)
})

bot.on('end', (reason) => {
  console.log('[Bot] Disconnected:', reason)
})

bot._client.on('error', (err) => {
  console.log('[Client Error]', err)
})

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.