- Don't stringify every packet if debug not enabled (@evan-goode)
- Add handler for Login Plugin Message (@ph0t0shop)
- Password=false now using offline mode (@dada513)
- Integrate Authentication for Microsoft Accounts (thanks @Kashalls)
- add back token auth now that mineflayer is fixed
- Temporarily revert token auth to fix a bug
- Add token auth like the vanilla launcher (save the token) (thanks @ph0t0shop)
- Only use fullReason for the disconnect packet (thanks @DeltaEvo)
- End the serializer instead of unpiping streams (thanks @DeltaEvo)
- make auto version more robust by giving up after 5s if no answer to ping is given but the version is returned
- client.end with full reason (thanks @redcarti)
- allow immediate shutdown when client is ended (thanks @Svebran)
- minecraft 1.16.2 and 1.16.3 support
- add buffer to packet event
- options for ping timeout and custom auth server
- electron support using aes-js (thanks @IdanHo)
- prevent ping hanging if server never replies
- minecraft 1.16 support
- better hide errors
- handle SRV record failure better (useful for tcp shield)
- make SRV record correctly propagate host to serverHost field (fix for tcp shield)
- fix for some servers in tcpdns (thanks @FTOH)
- use protodef compiler, making node-minecraft-protocol 10x faster, thanks for this huge improvement @Karang
- proxy support in auth (thanks @IdanHo)
- 1.15 support
- socket end timeout (thanks @matthi4s)
- add connect and close to types (thanks @ShayBox)
- add reference to node types in typescript types
- handle both max-players and maxPlayers in createServer options
- check whether version is supported in server auto version detection
- throw an unsupported protocol version in createServer when asking for an unsupported version
- 1.14.1 support
- 1.13.2 tested and supported
- add skipValidation flag for authentication thanks @vlakreeh
- fix compression.js (use Z_SYNC_FLUSH) thanks @lefela4
- fix tcp_dns.js checking for SRV lookup
- update mcdata : fix loadpath bug for 1.13.1
- 1.13.1 support
- better tests
- 1.13 support (thanks @lluiscab)
- fix autoversion bug
- fix srv record resolution
- added session data to session event
- add hideError option
- make decompression more reliable : print an error if a server send a wrong packet instead of crashing
- change codestyle to standard
- fix issue with auth.js
- Increase checkoutTimeoutInterval default to 30s in client
- Update autoVersion.js to emit errors instead of throwing
- update mcdata and protodef for fixes : packet_title fix + packet_title fixes
- support 17w50a (first 1.13 snapshot supported)
- full packet parser for better parsing errors
- lock yggdrasil until issue with 1.1.0 is fixed
- support 1.12.1
- add http and socks proxy example and related fixes
- remove ursa, use node-rsa and node crypto module instead
- modularize createServer
- dynamic version detection for the server
- fix autoversion in online mode
- improve autoversion support
- fix tests
- 1.12 support
- some 1.12 snapshots support
- disable validator for protocol (use too much memory and cpu, and already validated in mcdata tests)
- Added a errorHandler option to createServer.
- requires node 6
- use last protodef
- update to yggdrasil 0.2.0
- Fix the REGISTER channel type
- added plugin channel support (thanks @plexigras)
- add doc for client.end
- a small fix to autoversion
- update prismarine-nbt
- fixed options.favicon in createServer
- enable strict mode
- update to minecraft-data 2.0.0
- finally move to a major version
- update mcwrap
- use caret in dependencies
- use debug package
- check if e.field is defined when completing serializer/deserializer errors
- fix spawn_painting in 1.9
- update mcdata again : u8 not byte
- some fixes in 1.9 protocol
- update mcdata, support 1.9 release
- update minecraft-data, support 1.9-pre4
- update protodef and minecraft-data for new protocol schema
- update protodef
- custom packets
- fix tab_complete in 1.9
- update protodef dependency
- Supports Minecraft version 1.7.10, 1.8.8 and 1.9 (15w40b and 16w05b)
- improve auto version detection
- fix readUUID
- use correct default timeout value : 30 for the server, 20 for the client
- fix a small dependency error
- requires node>=4
- big refactor of createClient : split in several modules (thanks @deathcap)
- stop using es7
- make it easy to create client plugins (and create minecraft-protocol-forge) (thanks @deathcap)
- use babel6
- add dynamic version support in client
- update minecraft-data
- fix latency before the first keep alive
- initialize latency to 0
- add client.latency (thanks @netraameht)
- update protodef : fix bug in switch
- don't write after end and unpipe everything when ending
- update protodef version which fix a bug in writeOption
- add checkTimeoutInterval to createClient
- parse nbt in all packets (in particular tile_entity_data and update_entity_nbt)
- cross version support exposed : version option in createClient and createServer
- expose createSerializer and createDeserializer, createPacketBuffer and parsePacketData are now available in serializer/parser instances (BREAKING CHANGE)
- stop exposing packetFields, packetNames, packetIds, packetStates. That data is available by requiring minecraft-data package (BREAKING CHANGE)
- don't expose version anymore but supportedVersions (BREAKING CHANGE)
- use node-yggdrasil : index.js now doesn't expose yggdrasil, use node-yggdrasil directly if needed (BREAKING CHANGE)
- createServers's beforePing option can now takes an async function
- enable compression by default in createServer
- update ursa to get node4 (and node5) compatibility
- lot of internal changes : using the new general serializing/parsing library ProtoDef
- fix compression in proxy example
- fix gamemode3 in proxy
- generate the same uuidv3 than the vanilla server does in offline mode
- UUIDs are now strings instead of arrays. (BREAKING CHANGE)
- Server clients have a new property, client.profile, containing the result of the yggdrasil authentication
- Protocol.json now lives in minecraft-data
- Don't bubble up errors from client to server. (BREAKING CHANGE). If you want to catch the client errors, you need to add an error listener on that client. The old behavior was confusing, error-prone and undocumented !
- Add keepAlive option to createServer, in order to optionally disable it.
- Lots of low-level changes to allow minecraft-data to be more generic.
- NMP code is able to work with both 1.8 and 1.9 data with the same code, opening a path for cross-versioning.
- The packet events now take two parameters :
function (packetData, packetMetadata)
packetMetadata
contains the packet name, id and state (more may be added later)packetData
contains the actual data content
- Huge rewrite of the internals, using transform streams, which eliminates two
classes of problems from node-minecraft-protocol :
- Uncatchable errors being triggered inside the protocol parser
- Packets ariving out of order, causing several race conditions
- All the attributes that were previously exposed via
mc.protocol
are now directly attached to themc
object, e.g.mc.protocol.states
=>mc.states
. This is prone to further changes. - open_window now reports the entityId correctly for horses
- Properly handle the set_compression packet
- Fix small bug in scoreboard_team and player_info packets causing crashes
- Fix the login implementation logging out people from their launchers.
- Added hook to modify server ping (thanks Brian Schlenker)
- Exposed the Client class to the browser, after removing node-specific details
- Fixed the examples
- Silenced the "DID NOT PARSE THE WHOLE THING" debug message, and made it print more useful info
- Updated ursa-purejs dependency, which in turned fixed windows version of node-minecraft-protocol.
- Fixed readPosition for negative packets (thanks rom1504)
- Fixed particle packet.
- Fixed release. 0.13.1 release was missing an entire folder.
- Externalized rsa-wrap library to its own npm module, named ursa-native
- Fixed broken bed-related packets (thanks rom1504)
- Updated protocol version to support 1.8.1 (thanks wtfaremyinitials)
- Lots of changes in how some formats are handled.
- Crypto now defaults to a pure-js library if URSA is missing, making the lib easier to use on windows.
- Fix a bug in yggdrasil handling of sessions, making reloading a session impossible (thanks Frase)
- Set noDelay on the TCP streams, making the bot a lot less laggy.
- Fix for/in used over array, causing glitches with augmented Array prototypes (thanks pelikhan)
- Updated protocol version to support 1.7.10
- Some bug fixes in parser (thanks Luke Young)
- 'raw' event to catch all raw buffers (thanks deathcap)
- Misc bug fixes
- Updated protocol version to support 1.7.6
- Updated protocol version to support 1.7.2
- Overhaul the serializer backend to be more general-purpose and future-proof.
- Support listening packets by name (thanks deathcap)
- Support reading/writing a raw buffer to the socket.
- Updated protocol version to support 1.6.4 (thanks Matt Bell)
- Fix handling of some conditional fields (thanks Florian Wesch)
- Chat packet string max length fix (thanks Robin Lambertz)
- packet 0x2c: packet writing fixed, UUID format simplified, tests updated
- 1.6.2 support fixes: updated 0x2c packets to include
elementList
and added 0x85 Tile Editor Open packets
- support minecraft protocol 1.6.2 / protocol version 74 (thanks Matt Bell)
- support minecraft protocol 1.6.1 / protocol version 73 (thanks Matt Bell)
- note: chat packets have a new format (see the examples for how to upgrade).
- support minecraft protocol 1.5.2 / protocol version 61
- Added SRV record support when connecting to a server (thanks Matt Stith)
- 0x66:
shift
renamed tomode
and changed from bool to byte
- 0xce: create changed from bool to byte (thanks Robin Lambertz)
- fix buffer length checking bug in readSlot() (thanks Xabier de Zuazo)
- fix C2 calculation bug (fixed #35) (thanks Xabier de Zuazo)
- fix oob Buffer at readEntityMetadata (fixed #40) (thanks Xabier de Zuazo)
- fix remaining bugs for 1.5.1 protocol (thanks Xabier de Zuazo)
- writing packets is 6% faster (thanks Matt Bell)
- support minecraft protocol 1.5 / protocol version 60 (thanks Matt Bell)
- server: ability to change
motd
andmaxPlayers
- server: fix incorrect
playerCount
- server: fix crash when client disconnects quickly
- onlineModeExceptions are all lowercase now. fixes security hole.
- server: add
onlineModeExceptions
. When server is in:- online mode: these usernames are exempt from online mode.
- offline mode: these usernames must authenticate.
- server: online mode: don't log in client until username verification
- revert removing socket delays to reduce latency as it was causing errors and test failures.
- server: Client now emits more predictable 'end' events.
- fix objectData writer. This fixes sending an 0x17 packet.
- remove socket delays to reduce latency. (thanks Matt Bell)
createServer
: renameencryption-enabled
option toencryption
to stay consistent with the examples. (thanks Robin Lambertz)createClient
: don't require bothemail
andusername
.- The
username
andpassword
arguments are used to authenticate with the official minecraft servers and determine the case-correct username. If you have migrated your user account to a mojang login,username
looks like an email address. - If you leave out the
password
argument,username
is used to connect directly to the server. In this case you will get kicked if the server is in online mode.
- The
Emit 'error' event instead of crashing when other computers abuse the minecraft protocol.
Big thanks to Robin Lambertz for this release.
- ping: fix calling callback twice when server sends kick
- server: send a kick packet when kicking clients. (thanks Robin Lambertz)
- ping: include latency property (thanks Jan Buschtöns)
- createServer: allow empty options
- server: support online mode and encryption (thanks Robin Lambertz)
- Allow minecraft username instead of mojang email. (thanks Robin Lambertz)
- y values when only 1 byte are always unsigned
- 0x0e: change face to unsigned byte
- 0x0d: fix incorrectly swapped stance and y