extremeheat
367c01567c
Initial 1.19.1/2 signed chat support ( #1050 )
...
* Initial 1.19.1/2 signed chat impl
* lint
* remove node 15 nullish operators
* fix undefined uuid error
* handle player left
* fix
* add some feature flags
* fix
* Fix test to use new client.chat() wrapper method
* refactoring
* corrections, working client example
* refactoring
* message expiry checking
* Fix UUID write serialization
* Remove padding from client login to match vanilla client
* Fix server verification
* update packet field terminology
* Add some tech docs
Rename `map` field in Pending to not conflict with Array.map method
* update tech doc
* lint
* Bump mcdata and pauth
* add doc on playerChat event, .chat function
* update doc
* use supportFeature, update doc
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2023-01-14 20:33:04 +01:00
Romain Beaumont
061176d377
run standard
2022-11-11 22:24:15 +00:00
extremeheat
d7c5053a13
1.19.0 support ( #1027 )
...
* Bump mcdata for 1.19
* 1.19 in version.js
* 1.19.0 in ci yml
* Update ci.yml
* Update version.js
* Update package.json
* No fail fast
* Update mcdata
* Update package.json
* Update ci.yml
* [1.19] fix tests and library session code (#1020 )
* make tests work, add todo's
* clean up, varlong test, additional todo
* removed log statements, fix for older versions
* Update mcdata
* Update ci.yml
* Update ci.yml
* remove excessive version comments near supportFeature checks
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
* chat signing implementation
* Update ci.yml
* move some boilerplate to pauth
* update tests
* update chat example
* bump pauth, update doc
* modify test nextMessage func
* lint
* update default version
* add server player verifyMessage
* update doc
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
Co-authored-by: Rob9315 <dev.robk@gmail.com>
2022-08-16 00:57:26 +02:00
Jordan Jones
60379eb7d2
Provide interface for using not at all supported alternative accounts. ( #1026 )
...
* Handle auth potentially being an function
* "Simple" example of how in theroy it would work
* Add package.json
* Fix lint
* add type declarations
* Remove mcleaks example
* Add doc changes
* adjust warning
* Fix lint from rebase manual edit.
2022-07-29 18:41:43 +02:00
Romain Beaumont
ae9f884724
update electron in example
2021-12-02 23:26:46 +00:00
extremeheat
2a2cc1ee92
Update prismarine-auth usage ( #923 )
...
* Update prismarine-auth usage
add new `deviceType` parameter
* remove whitespace
* use nintendo switch title id
* update examples
2021-11-12 02:08:18 +01:00
u9g
f0138a5068
Make examples work for 1.17.1 ( #902 )
...
* Make examples work for 1.17.1
* Update server_channel.js
* Update server_custom_channel.js
* Update server_helloworld.js
* Update mc.js
2021-09-03 18:52:47 +02:00
circuit10
66f17e43eb
Fix slightly malformed chunk in example ( #864 )
2021-06-16 22:50:41 +02:00
IceTank
ebbd93f2b6
Added README and more error Handling to client_socks_proxy example ( #846 )
...
* Added README and more error Handling to client_socks_proxy example.
* Lint fixing
2021-04-11 23:15:15 +02:00
Nihat
4a85609902
Update remove color regex in ping.js ( #848 )
2021-04-11 23:13:06 +02:00
Nihat
6987c3aff6
Create ping.js example ( #847 )
2021-04-11 22:55:53 +02:00
u9g
294e20b54a
Add compiler example ( #841 )
...
* Initial commit
* require minecraft-data
* use buffer.compare instead of ===
* use .equals
* Fix flipped serializer
2021-04-06 22:44:17 +02:00
extremeheat
8f2a027812
Msa device code auth ( #806 )
...
* initial msa work
* rm debug code
* Update package.json
* lint, seperate constants, create missing msa cache
* support multiple profiles
* lint
* use shared constants
* fix path issues
* fix token variable
* fix caching msa profile data
* switch clientId to one from microsoft
* store caches in .minecraft, fallback to dev code auth when user+pass fails
* update electron demo, fix error handling, add docs
* fix caching dir
* fix lint
* move to class scope, token fixes
* retry on fail, terminology fixes
* fix promise bug
* cleanup
2021-01-30 01:21:03 +01:00
Jordan Jones
5d723e9a04
Integrate Authentication for Microsoft Accounts ( #788 )
...
* add node-fetch and @xboxreplay/xboxlive-auth for microsoft/xbox auth
* decide which authentication to use based on options;
if options.auth === 'microsoft' then use microsoft/xbox auth, else use Yggdrasil until they kill that.
* push working auth
* commentary
* eslint does not like me :(
* User-Agent works just fine without version
* linting = 95% of development
* revert changes to encrypt.js
* set haveCredentials to whether or not we have a token.
Technically this will always be true so...?
* eslint
* mod+create: api + example
* mod: readme.md
2020-12-11 21:30:48 +01:00
Romain Beaumont
72aef6788c
fix client echo argv check
2020-12-06 18:53:04 +01:00
Romain Beaumont
011b6a189a
Revert "Revert "Add token authentication ( #780 )""
...
This reverts commit 14c4886ac4
.
Adds back token auth now that mineflayed is fixed
2020-12-06 18:48:52 +01:00
Romain Beaumont
14c4886ac4
Revert "Add token authentication ( #780 )"
...
This reverts commit 0277091ddc
.
This commits introduced a bug in offline mode.
We don't know yet how to fix it, so better revert first and fix later
2020-12-06 01:57:40 +01:00
ph0t0shop
0277091ddc
Add token authentication ( #780 )
...
* Add token authentication
* Update package.json
* Update src/client/auth.js
Co-authored-by: David Duarte <deltaduartedavid@gmail.com>
* Remove some deps
* Fix merge conflict + fix some token stuff
* Fix even more stuff + testing
* Change back echo example
* Let -> const + bugfix
* Fixed error handling
* Revert client_echo again...
* Fix linter errors
* Profile improvements
* Stupid linter errors
* Update yggdrasil, remove token auth example, move to client_echo instead
* Update client_echo
* Linter error...
Co-authored-by: David Duarte <deltaduartedavid@gmail.com>
2020-12-05 23:28:12 +01:00
Romain Beaumont
f7941b9412
update to standard 16
2020-10-31 14:48:53 +00:00
Grooble
9895df791e
Update server_world example ( #770 )
...
* Update server_world example
* Fix syntax
* Change required version
2020-10-25 14:26:26 +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
a186392d1d
update electron in example
2020-08-03 23:16:57 +02:00
Romain Beaumont
50a90030b3
add electron example, fix #751
2020-08-03 01:39:04 +02:00
Romain Beaumont
2f508e2c7a
Merge pull request #746 from PrismarineJS/pchat
...
Pchat
2020-07-31 23:58:38 +02:00
Romain Beaumont
ddfc9347d0
fix lint
2020-07-31 21:53:09 +00:00
Romain Beaumont
6346153d15
improve proxy doc
2020-07-18 19:22:48 +02:00
SiebeDW
ad2c0f2b0d
Move to prismarine-chat
2020-07-14 19:39:47 +00:00
Romain Beaumont
cbef0f331f
switch to 1.16
2020-06-23 17:10:22 +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
eea700ffba
update usage of map_chunk
2020-06-23 15:48:33 +02:00
Romain Beaumont
4a20374082
fix a few errors in socks proxy example
2020-06-16 17:53:53 +02:00
Romain Beaumont
3174284d00
Merge pull request #706 from PrismarineJS/snyk-upgrade-c35355a523872560748c4b250831e862
...
[Snyk] Upgrade buffer-equal from 0.0.1 to 0.0.2
2020-05-04 20:47:56 +02:00
snyk-bot
f6d30844ff
fix: upgrade buffer-equal from 0.0.1 to 0.0.2
...
Snyk has created this PR to upgrade buffer-equal from 0.0.1 to 0.0.2.
See this package in NPM:
https://www.npmjs.com/package/buffer-equal
See this project in Snyk:
https://app.snyk.io/org/rom1504/project/d980c3b1-e278-4eac-985b-7c3511aa1f6d?utm_source=github&utm_medium=upgrade-pr
2020-05-04 10:03:33 +02:00
snyk-bot
d8e018911f
fix: upgrade readline from 0.0.7 to 0.0.8
...
Snyk has created this PR to upgrade readline from 0.0.7 to 0.0.8.
See this package in NPM:
https://www.npmjs.com/package/readline
See this project in Snyk:
https://app.snyk.io/org/rom1504/project/b8cf11b5-595f-40f7-bb31-3eb34965b78d?utm_source=github&utm_medium=upgrade-pr
2020-05-04 06:41:19 +02:00
Idan Horowitz
54380a3cb7
Pass through http agent option to yggdrasil for proxy support ( #676 )
...
* initialize yggdrasil with agent option if it exists
* standardjs
* move require statements to the top
* add agent option to docs and ts type information
also removed useless typescript import and moved class fields from wrong class to the correct one
* update proxy examples and add http agents for proxying yggdrasil
* update to agent supporting yggdrasil version
2020-02-11 12:31:24 +01: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
83a77be10b
fix for latest standard
2019-08-20 22:14:37 +00:00
Romain Beaumont
8e5264dc52
fix lint for new standard version
2019-08-03 23:29:14 +00:00
Romain Beaumont
b1ba01ed3c
run standard 1.12 --fix
2018-09-25 23:09:37 +02:00
Romain Beaumont
26267ab043
Merge branch 'master' into lluiscab/fix-client_echo
2018-09-24 22:09:46 +02:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix
2018-09-24 22:08:11 +02:00
lluiscab
9a9eaedaf5
Executed standard --fix
2018-08-27 12:44:20 +02:00
lluiscab
a563893a62
Fixed client echo crash on /say
2018-08-27 12:31:24 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci
2018-05-13 22:50:16 +02:00
Oscar Beaumont
8afeee014f
Add Minecraft Version To The Server
...
Add the Minecraft version this example was built with to the create server function so that this example code works even if the default Minecraft version for this module changes.
2017-11-09 18:32:10 +08:00
Oscar Beaumont
f3a25af4dc
Added package.json
...
Added a package.json that has the dependencies for the example code.
2017-11-09 10:29:56 +08:00
Oscar Beaumont
39b2fc2157
Send The Player Position After The Chunk Data
...
The players position was sent before sending the chunk which had now been switched.
2017-11-09 10:28:33 +08:00
Oscar Beaumont
a70eee40c8
Added New Example For Generating A World
...
This is a new example that shows how to generate a chunk (Using prismarine-chunk) and send it to the user.
2017-11-08 23:27:00 +08:00
Lane Kolbly
c7aaee6dbc
Changed let scope, added undefined check.
2017-08-10 16:50:12 -05:00
Romain Beaumont
650c411822
add readme.md for the proxy example, progress on #380
2017-07-28 22:41:51 +02:00