Commit graph

22 commits

Author SHA1 Message Date
IceTank
a9cc6cee85
Add motdMsg to createServer (#996)
* Add motd as MessageBuilder object

* Fix chatMessageMotd type

* Fix test (?)

* Update API.md

* Remove MessageBuilder dependency and type

* Minor code refactor

* Update docs/API.md

Co-authored-by: u9g <git@u9g.dev>

* chatMessageMotd => motdMsg

Co-authored-by: u9g <git@u9g.dev>
2022-05-13 18:49:08 -04:00
Rob9315
78f038cae6
Add beforeLogin function option on server (#871)
* Add `beforeLogin` event on server

* optional function passin instead of emitted event

* Add documentation and bump version

* undo release push

* add test for `beforeLogin`
2021-07-06 12:42:00 +02:00
Jordan Jones
4d5dbb118e
automatic port "discovery" for packets and server tests (#870)
* automatic port "discovery" for packets and server tests

* Semi-colon begone!

* move getport to commons file - u9g

* Merge code
2021-06-28 22:58:21 -04:00
u9g
75e5316e8b
make port discovery automatic & update java ver for 1.17 (#869)
* make port discovery automatic

* try to use promise instead of promisify

* update java version

* add faster timeout

* increase timeout duration for server startup

* Update ci.yml

* update ram

* update java again

* Update clientTest.js

* actually skip online

* Update clientTest.js

* comment out

* fix comment

* properly await server data deletion

* fix serverTest for 1.17 with backwards compat

* add back dimension to login packet

* remove comment

* remove duplicated dimension in server test

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-06-29 00:27:37 +02:00
u9g
3813d4de7d
Make ci clearer as to what version is being tested (#861)
* Make ci clearer as to what version is being tested

* Update ci.yml

* fix

* fix
2021-06-13 04:54:16 +02:00
Grooble
1796b9693d
Add a way to encode a packet only once and send it to multiple clients (#851)
* Added Server#.writeToClients()

* Documented server.writeToClients()

* Added test for Server#writeToClients()

* Bad arguments for Promise.all()

* Fixed tests

* Fixed tests

* Fixed tests

* Updated tests

* Reverted timeout to the normal
2021-05-02 01:12:37 +02:00
David Duarte
5873c1a29f
Only use fullReason for the disconnect packet (#776)
And keep endReason for the client end reason, to avoid having
big JSON string that are more difficult to read
2020-12-05 16:52:36 +01:00
Grooble
306b16abcd
1.16.2 and 1.16.3 support (#765)
* Update node-minecraft-data to 2.69.0

* Change default version to 1.16.3

* Update example

* Fix tests

* remove context change for bitfield

* Update README example

* Update tests

* Update examples

* Fix tests

* Update versionChecking for 1.16.3

* Update tests
2020-10-06 22:46:53 +02:00
Romain Beaumont
b7c5a45557
fix tests 2020-06-23 17:02:31 +02:00
Romain Beaumont
2da46e1f35
fix clientbound usage of chat and login for 1.16 2020-06-23 16:52:18 +02:00
Romain Beaumont
33178bb94d
add new fields in login packet usage for 1.15.1 2019-12-29 23:27:04 +01:00
Romain Beaumont
8e5264dc52 fix lint for new standard version 2019-08-03 23:29:14 +00:00
Romain Beaumont
b5b500adf8
1.14 support (#628) 2019-05-20 01:46:02 +02:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Romain Beaumont
5942d42d8b
increase server test timeout a bit 2017-07-21 22:48:18 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
20dd0710f2 parallel circle ci testing of clientTest.js (#373) (#449)
parallel testing with circle ci, solve #373
2017-05-10 02:49:13 +02:00
Romain Beaumont
00b539d0c7 fix tests and fix #360 2016-02-23 19:37:47 +01:00
Romain Beaumont
a129d13cf1 use minecraftVersion in tests, stop if no varint in framer 2016-02-19 00:48:39 +01:00
Romain Beaumont
b2b53c9343 a few small changes to make the code better 2015-11-30 22:19:56 +01:00
Romain Beaumont
92b4b2bf8d split the tests in 3 files, fix #265 2015-10-02 02:02:54 +02:00