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
Romain Beaumont
010362ef78
add connect option to createClient for multiple (ping + normal) connections for the proxy examples, use the normal options for pinging in autoVersion to have that option available and fix the proxy examples accordingly
2017-07-19 18:39:25 +02:00
Romain Beaumont
6279ae9afe
fix socks proxy using a socks module that actually works and provide a proper node stream
2017-07-19 17:24:51 +02:00
Romain Beaumont
cab5a329bf
fix http proxy
2017-07-19 16:41:24 +02:00
Romain Beaumont
e9ced90a50
Update client_socks_proxy.js
2017-07-17 15:30:14 +02:00
Romain Beaumont
d8844a5ba1
Update client_http_proxy.js
2017-07-17 15:30:00 +02:00
Romain Beaumont
ed425e775d
add 2 examples : client_http_proxy and client_socks_proxy. fix #185 fix #436
2017-07-13 14:42:42 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests
2017-07-13 14:03:52 +02:00
Romain Beaumont
eb5764e7ab
fix autoversion in online mode.
...
Explanation:
in this specific case, we were changing the state of the client to hanshaking (in autoVersion.js) before a connection was made (using setSocket), the consequence is the serializer was already piped to the framer when setSocket was called, and setSocket doesn't unpipe before piping. The consequence of that was the framer was piped 2 times, the packet was sent 2 times and the server kicked us.
My solution is piping the serializer to the framer in Client constructor.
Then if the state is changed, it will anyway automatically unpipe before repiping.
Other places correctly unpipe before piping.
Autoversion is now the default in nmp too
2017-07-12 13:07:25 +02:00
Romain Beaumont
a0717a1232
add logic for custom channel, and corresponding examples
2016-08-10 19:27:50 +02:00
Romain Beaumont
1dcd119d93
fix version in pluginChannels, add writeChannel, add two examples for a vanilla channel (MC|Brand)
2016-08-10 18:54:06 +02:00
deathcap
14e848ab99
Enable strict mode
2016-04-27 16:27:32 -07:00
Romain Beaumont
d9d29bf17d
Merge pull request #392 from vimes1984/patch-2
...
Update proxy.js
2016-03-21 15:56:21 +01:00
christopher james churchill
25750ddf2d
Update proxy.js
...
ups != was right in one of those cases....
ummm using typeof may be better?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
2016-03-21 14:51:26 +00:00
christopher james churchill
bc94bc1fe0
Update proxy.js
...
changing == to === and != to !== becuase js is a bitch see:
http://www.impressivewebs.com/why-use-triple-equals-javascipt/
2016-03-21 14:46:06 +00:00
christopher james churchill
d9782d6d9f
Update proxy.js
...
fixing type in example code :D
2016-03-21 14:40:53 +00:00
Romain Beaumont
440a190780
update to 1.9-pre4, improve the proxy errors a bit
2016-02-27 18:10:11 +01:00
Romain Beaumont
d78d87b9fc
update to new minecraft-data protocol schema
2016-02-23 18:42:01 +01:00
Romain Beaumont
91ccac44df
index custom packets by version
2016-02-20 17:19:36 +01:00
Romain Beaumont
eba07e6b90
add an optional property to add custom packets to createClient and createServer
2016-02-20 17:19:36 +01:00